mirror of
https://github.com/yalue/onnxruntime_go.git
synced 2025-12-24 13:38:00 +08:00
- This change introduces the CustomDataTensor type, which implements the ArbitraryTensor interface but, unlike the typed Tensor[T], is backed by an arbitrary slice of user-provided bytes. The user is responsible for providing the type of data the tensor is supposed to contain, as well as responsible for ensuring the data slice is in the correct format for the specified shape. - Added some test cases for the new CustomDataTensor type, which most notably will enable users to use float16 tensors (provided they converted the float16 array into bytes on their own).
275 B
275 B