8000 Abstract output dtype by raphaelDkhn · Pull Request #26 · gizatechxyz/giza-agents · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abstract output dtype #26

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

Merged
merged 5 commits into from
Mar 19, 2024
Merged

Abstract output dtype #26

merged 5 commits into from
Mar 19, 2024

Conversation

raphaelDkhn
Copy link
Contributor

Simplify the process for users by automatically determining the output data type of a Cairo model, eliminating the need for manual specification.

This is achieved by identifying the operator type (op_type) responsible for the graph's output. In cases where the op_type corresponds to an "exceptional" operator, the operator's data type is used. Otherwise, the default output type is set to Tensor<FP16x16>.

Gonmeso
Gonmeso previously approved these changes Mar 18, 2024
print(f"ONNX model saved at: {save_path}")
self.session = ort.InferenceSession(save_path)
print("Model ready for inference with ONNX Runtime! ✅")
print(f"ONNX model saved at: {save_path} ✅")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self:

  • add logging instead of just printing
  • add debug logs

@raphaelDkhn raphaelDkhn merged commit e846b90 into main Mar 19, 2024
@raphaelDkhn raphaelDkhn deleted the abstract-output-dtypes branch March 19, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0