Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated training init tests to remove inference test temporarily. #5984

Merged
merged 1 commit into from
Oct 5, 2023
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