move import to the front

This commit is contained in:
LDOUBLEV 2020-07-28 13:58:14 +08:00
parent b5a1fe643f
commit 8b499c3769
1 changed files with 1 additions and 3 deletions

View File

@ -16,6 +16,7 @@ import logging
import os import os
import imghdr import imghdr
import cv2 import cv2
from paddle import fluid
def initial_logger(): def initial_logger():
@ -90,9 +91,6 @@ def check_and_read_gif(img_path):
return None, False return None, False
from paddle import fluid
def create_multi_devices_program(program, loss_var_name): def create_multi_devices_program(program, loss_var_name):
build_strategy = fluid.BuildStrategy() build_strategy = fluid.BuildStrategy()
build_strategy.memory_optimize = False build_strategy.memory_optimize = False