-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Various small fixes #814
Various small fixes #814
Conversation
src/tensor_ops/matmul/cpu_kernel.rs
Outdated
cp as *mut gemm::f16, | ||
cp, | ||
cstr[1] as isize, | ||
cstr[0] as isize, | ||
accum, | ||
ap as *const gemm::f16, | ||
ap, | ||
astr[1] as isize, | ||
astr[0] as isize, | ||
bp as *const gemm::f16, | ||
bp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need these - internally gemm does a TypeId check against the type. So if gemm is using a different version of the half crate than dfdx, this will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good other than the gemm stuff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
A tiny pr that resolves multiple issues too small to deserve their own pr. It makes the following changes:
half::f16
inshapes/mod.rs
, which resolves Re-exporthalf::f16
in lib.rs if f16 feature is enabled #810.Gradients::get_or_alloc_mut
public, which resolves Make Gradients::get_or_alloc_mut pub #809.get_or_alloc_mut
andGradients::get
to work with any implementer of TensorLike.Gradients::try_alloc_for
publicTensor::ghost
public (GhostTensor was already public, there just wasn't any way to construct it)