Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions ml-agents/tests/yamato/training_int_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ def run_training(python_version: str, csharp_version: str) -> bool:
subprocess.run(["cat", log_output_path])
return False

if csharp_version is None and python_version is None:
# Use abs path so that loading doesn't get confused
model_path = os.path.abspath(os.path.dirname(onnx_file_expected))
inference_ok = run_inference(env_path, model_path, "onnx")
if not inference_ok:
return False
# TODO re-enable when Sentis model byte loading has been added
# disabling inference tests for now due to Sentis deprecation of loading onnx from byte array.
# if csharp_version is None and python_version is None:
# # Use abs path so that loading doesn't get confused
# model_path = os.path.abspath(os.path.dirname(onnx_file_expected))
# inference_ok = run_inference(env_path, model_path, "onnx")
# if not inference_ok:
# return False

print("mlagents-learn run SUCCEEDED!")
return True
Expand Down