KJlaccHoeUM9l commented on code in PR #13802: URL: https://github.com/apache/tvm/pull/13802#discussion_r1084038190
########## python/tvm/relay/frontend/onnx.py: ########## @@ -5451,6 +5451,36 @@ def _impl_v16(cls, inputs, attr, params): ) +class Bernoulli(OnnxOpConverter): + """Operator converter for Bernoulli""" + + @classmethod + def _impl_v15(cls, inputs, attr, params): + in_dtype = infer_type(inputs[0]).checked_type.dtype + assert in_dtype in [ + "float32", + "float64", + ], "Only float input tensor is currently supported." Review Comment: ONNX has support for `float16`. However, this type is not supported here. Maybe it's worth pointing out the reason (`TODO`) why this data type is not currently supported at the ONNX front-end level? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org