You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a make_tensor utility that will accept all sorts of tensor like objects and turn them into TensorProtocol objects for the IR. In this way we avoid serialization into ONNX TensorProto
The text was updated successfully, but these errors were encountered:
…_dtypes to support int4/bfloat16 (#1549)
Now possible to do
```python
tensor1 = ir.tensor(tensor_proto)
tensor2 = ir.tensor(np_array)
tensor3 = ir.tensor([1,2], dtype=ir.DataType.FLOAT)
```
supporting all ONNX dtypes.
- Added ml_dtypes as a new dependency and use it to support
int4/bfloat16.
- Removed the unused float32->float16 helper function
Tested: unit tests and doctests
Fixes#1439
Create a make_tensor utility that will accept all sorts of tensor like objects and turn them into TensorProtocol objects for the IR. In this way we avoid serialization into ONNX TensorProto
The text was updated successfully, but these errors were encountered: