mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
fix: fix the type
This commit is contained in:
committed by
Benoit Chevallier
parent
7ea39fb77d
commit
3d6baf4101
@@ -27,7 +27,7 @@ NUMPY_TO_COMMON_DTYPE_MAPPING: Dict[numpy.dtype, BaseDataType] = {
|
||||
numpy.dtype(numpy.uint64): Integer(64, is_signed=False),
|
||||
numpy.dtype(numpy.float32): Float(32),
|
||||
numpy.dtype(numpy.float64): Float(64),
|
||||
numpy.dtype(bool): Integer(32, is_signed=False),
|
||||
numpy.dtype(bool): Integer(8, is_signed=False),
|
||||
}
|
||||
|
||||
SUPPORTED_NUMPY_DTYPES = tuple(NUMPY_TO_COMMON_DTYPE_MAPPING)
|
||||
|
||||
@@ -314,6 +314,7 @@ def test_trace_numpy_supported_ufuncs(inputs, expected_output_node):
|
||||
assert op_graph.output_nodes[0].outputs[0] == EncryptedScalar(Float(64))
|
||||
else:
|
||||
assert op_graph.output_nodes[0].outputs[0] in [
|
||||
EncryptedScalar(Integer(8, is_signed=False)),
|
||||
EncryptedScalar(Integer(32, is_signed=False)),
|
||||
EncryptedScalar(Integer(32, is_signed=True)),
|
||||
EncryptedScalar(Integer(64, is_signed=True)),
|
||||
|
||||
Reference in New Issue
Block a user