We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ccc481 commit b638c60Copy full SHA for b638c60
src/sagemaker_pytorch_serving_container/torchserve.py
@@ -114,10 +114,8 @@ def _adapt_to_ts_format(handler_service):
114
extra_files = []
115
extra_files.append(os.path.join(environment.model_dir, DEFAULT_TS_CODE_DIR, environment.Environment().module_name + ".py"))
116
extra_files+= [os.path.join(environment.model_dir, file) for file
117
- in os.listdir(environment.model_dir)
118
- if os.path.isfile(os.path.join(environment.model_dir, file))]
119
- extra_files.remove(os.path.join(environment.model_dir, DEFAULT_TS_MODEL_SERIALIZED_FILE))
120
- logger.info(extra_files)
+ in os.listdir(environment.model_dir)
+ if os.path.isfile(os.path.join(environment.model_dir, file)) and file != DEFAULT_TS_MODEL_SERIALIZED_FILE ]
121
122
model_archiver_cmd = [
123
"torch-model-archiver",
0 commit comments