File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1919import sys
2020from math import sqrt
2121
22+ __dir__ = os .path .dirname (os .path .abspath (__file__ ))
23+ print (os .path .abspath ('/' .join (__dir__ .split ('/' )[:- 3 ])))
24+ sys .path .append (os .path .abspath (os .path .join (__dir__ , '..' )))
25+ sys .path .append (os .path .abspath ('/' .join (__dir__ .split ('/' )[:- 3 ])))
26+
2227from tools .utils .utils_single import load_yaml , load_dy_model_class , \
2328 get_abs_model
2429from tools .utils .save_load import load_model
2530from paddle .io import DataLoader
2631import argparse
2732from importlib import import_module
2833
29- __dir__ = os .path .dirname (os .path .abspath (__file__ ))
30- print (os .path .abspath ('/' .join (__dir__ .split ('/' )[:- 3 ])))
31- sys .path .append (os .path .abspath (os .path .join (__dir__ , '..' )))
32- sys .path .append (os .path .abspath ('/' .join (__dir__ .split ('/' )[:- 3 ])))
33-
3434logging .basicConfig (
3535 format = '%(asctime)s - %(levelname)s - %(message)s' , level = logging .INFO )
3636logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ runner:
2626 print_interval : 10
2727
2828 model_save_path : " output_model_fat_deepffm"
29- infer_batch_size : 1000
29+ infer_batch_size : 1
3030 infer_reader_path : " criteo_reader" # importlib format
3131 test_data_dir : " data/sample_data/train"
3232
You can’t perform that action at this time.
0 commit comments