Skip to content

Commit 8a067f8

Browse files
author
Qian Chen
committed
test13
1 parent 51da0cc commit 8a067f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sagemaker_mxnet_serving_container/handler_service.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,18 @@ def __init__(self):
4747

4848
@staticmethod
4949
def _user_module_transformer(model_dir=environment.model_dir):
50+
log.info(schenqian1)
51+
log.info(model_dir)
5052
module_name = environment.Environment().module_name
53+
log.info(module_name)
5154
inference_script = model_dir + '/code' + '/{}.py'.format(module_name)
55+
log.info(inference_script)
5256
if os.path.exists(inference_script):
57+
log.info(schenqian2)
5358
spec = importlib.util.spec_from_file_location(module_name, inference_script)
59+
log.info(schenqian3)
5460
user_module = importlib.util.module_from_spec(spec)
61+
log.info(user_module)
5562
else:
5663
log.info("Please include /code/{}.py in model_dir".format(module_name))
5764
raise ValueError('Invalid inference_script path: Could not find '

0 commit comments

Comments
 (0)