Skip to content

Commit cfc3926

Browse files
committed
Copied globals.regen from NumSharp
- Added supported_numericals_TF_DataType
1 parent 4ba71e2 commit cfc3926

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
%all_dtypes = ["NDArray","Complex","Boolean","Byte","Int16","UInt16","Int32","UInt32","Int64","UInt64","Char","Double","Single","String"]
2+
%all_dtypes_lowercase = ["NDArray","Complex","bool","byte","short","ushort","int","uint","long","ulong","char","double","float","string"]
3+
4+
%supported_primitives = ["Boolean","Byte","Int16","UInt16","Int32","UInt32","Int64","UInt64","Char","Double","Single","String"]
5+
%supported_primitives_lowercase = ["bool","byte","short","ushort","int","uint","long","ulong","char","double","float","string"]
6+
7+
%supported_numericals = ["Byte","Int16","UInt16","Int32","UInt32","Int64","UInt64","Char","Double","Single"]
8+
%supported_numericals_lowercase = ["byte","short","ushort","int","uint","long","ulong","char","double","float"]
9+
%supported_numericals_defaultvals = ["0","0","0","0","0u","0L","0UL","'\0'","0d","0f"]
10+
%supported_numericals_onevales = ["1","1","1","1","1u","1L","1UL",1,"1d","1f"]
11+
%supported_numericals_TF_DataType = ["TF_DataType.TF_UINT8","TF_DataType.TF_INT16","TF_DataType.TF_UINT16","TF_DataType.TF_INT32","TF_DataType.TF_UINT32","TF_DataType.TF_INT64","TF_DataType.TF_UINT64","TF_DataType.TF_UINT8","TF_DataType.TF_DOUBLE","TF_DataType.TF_FLOAT"]
12+
13+
//this is the type we use in summerizing/reducting:
14+
%supported_numericals_accumulatingType = ["UInt32","Int32","UInt32","Int32","UInt32","Int64","UInt64","UInt32","Double","Single"]
15+
%supported_numericals_accumulatingType_defaultvals = ["0","0","0","0","0u","0L","0UL","'\0'","0d","0f"]
16+
17+
%supported_numericals_signed = ["Int16","Int32","Int64","Double","Single"]
18+
%supported_numericals_signed_lowercase = ["short","int","long","double","float"]
19+
%supported_numericals_signed_defaultvals = ["0","0","0L","0d","0f"]
20+
%supported_numericals_signed_onevales = ["1","1","1L","1d","1f"]
21+
22+
%supported_numericals_unsigned = ["Byte","UInt16","UInt32","UInt64","Char"]
23+
%supported_numericals_unsigned_lowercase = ["byte","ushort","uint","ulong","char"]
24+
%supported_numericals_unsigned_defaultvals = ["0","0","0U","0UL","'\0'"]
25+
%supported_numericals_unsigned_onevales = ["1","1","1U","1UL","'\1'"]
26+
27+
%supported_dtypes = ["Boolean","Byte","Int16","UInt16","Int32","UInt32","Int64","UInt64","Char","Double","Single"]
28+
%supported_numericals_TF_DataType = ["TF_DataType.TF_UINT8","TF_DataType.TF_INT16","TF_DataType.TF_UINT16","TF_DataType.TF_INT32","TF_DataType.TF_UINT32","TF_DataType.TF_INT64","TF_DataType.TF_UINT64","TF_DataType.TF_UINT8","TF_DataType.TF_DOUBLE","TF_DataType.TF_FLOAT"]
29+
30+
%supported_dtypes_lowercase = ["bool","byte","short","ushort","int","uint","long","ulong","char","double","float"]
31+
%supported_dtypes_defaultvals = [false,"0","0","0","0","0u","0L","0UL","'\0'","0d","0f"]
32+
%supported_dtypes_onevales = [true,"1","1","1","1","1u","1L","1UL","'\1'","1d","1f"]
33+
%supported_dtypes_dtype = ["bool","uint8","int16","uint16","int32","uint32","int64","uint64","uint8","float64","float32"]
34+
35+
//this is the type we use in summerizing/reducting:
36+
%supported_dtypes_accumulatingType = ["Int32","UInt32","Int32","UInt32","Int32","UInt32","Int64","UInt64","UInt32","Double","Single"]
37+
%supported_dtypes_accumulatingType_defaultvals = [false, "0","0","0","0u","0L","0UL","'\0'","0d","0f"]
38+

0 commit comments

Comments
 (0)