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
and this is seen in onnx graphs generated by tf2onnx, where e.g. cast to bfloat16 and cast to float16 both result in elem_type: 10, which is float16, as seen here:
Describe the bug
Currently TF BFloat16 data type maps to Float16:
https://github.com/onnx/tensorflow-onnx/blob/main/tf2onnx/tf_utils.py#L31
and this is seen in onnx graphs generated by tf2onnx, where e.g. cast to bfloat16 and cast to float16 both result in
elem_type: 10
, which is float16, as seen here:https://github.com/onnx/onnx/blob/main/onnx/onnx.proto#L515
however, onnx does have BFloat16, as seen here:
https://github.com/onnx/onnx/blob/main/onnx/onnx.proto#L526
I consider this a bug, rather than a feature request, because these are not interchangeable types.
Urgency
System information
To Reproduce
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: