Skip to content

Unsupported boolean dataType for Tensors

When I create a Tensor with the data type boolean:

import aidge_core;import aidge_backend_cpu; import aidge_onnx
import numpy as np

arr = np.array([True, False, True])
t = aidge_core.Tensor(arr)

I get the error:

[FATAL] - Unsupported python type passed to Tensor constructor
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Unsupported python type passed to Tensor constructor
Edited by Houssem ROUIS