BooleanTensorType not supported?
See original GitHub issueI tried using convert_sklearn()
with one of my initial_types
set to BooleanTensorType([None, 1])
: the conversion works but then when I try to load the model with onnxruntime, I get the following error:
onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. Type Error: Type 'tensor(bool)' of input parameter (input1) of operator (ArrayFeatureExtractor) in node (ArrayFeatureExtractor) is invalid.
Is that expected?
Issue Analytics
- State:
- Created 4 years ago
- Comments:16
Top Results From Across the Web
RuntimeError: Subtraction, the `-` operator, with a bool tensor ...
I use the torch12, met the same problem when i run the smplx project. You can use the code to replace the source...
Read more >torch.onnx — PyTorch 1.13 documentation
Tensors , numeric types that can be trivially converted to torch.Tensors (e.g. float, int), and tuples and lists of those types are supported...
Read more >tf.dtypes.DType | TensorFlow v2.11.0
Represents the type of the elements in a Tensor. ... Non-numeric, unordered, and quantized types are not considered unsigned, and this ...
Read more >Basic Tensor Functionality — Theano 1.1.2+29.g8b2825658 ...
Theano supports any kind of Python object, but its focus is support for symbolic ... If you wish to use a type of...
Read more >Layers — NVIDIA TensorRT Standard Python API ...
If the input tensor has shape {C, H, W} , then the tensor is reshaped into {1, C*H*W} . ... On Xavier, this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, as I mentioned before, we need to add support for bool in the converters. I’ll mark this issue as enhancement and evaluate the work that needs to be done to support bool. In the mean time, you may use the casting approach. Thanks!
@xadupre very nice, thx