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

Add some load from pt function. #82

Merged
merged 1 commit into from
Apr 6, 2023
Merged

Add some load from pt function. #82

merged 1 commit into from
Apr 6, 2023

Conversation

LaurentMazare
Copy link
Owner

No description provided.

"at_loadz_callback"
(string
@-> static_funptr Ctypes.(string @-> t @-> returning void)
@-> returning void)
end
Copy link

@zbroyar zbroyar Mar 29, 2023

Choose a reason for hiding this comment

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

I'm sorry for a probably dumb question, but you implemented two functions in C++ code: at_loadz_callback_with_device and at_loadz_callback_with_device. Why did you use only first one in ML code?

Copy link
Owner Author

Choose a reason for hiding this comment

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

The C++ bits are shared with the rust version of the bindings which support loading tensors directly to a device, this isn't supported on the OCaml side as it never was requested, I've still copied both C++ functions over just in case it becomes useful at some point.

@LaurentMazare LaurentMazare merged commit da2d424 into main Apr 6, 2023
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.

None yet

2 participants