Skip to content

Commit 73471d5

Browse files
committed
Add TensorFlow data types
1 parent 967fa25 commit 73471d5

File tree

1 file changed

+20
-2
lines changed
  • pkg/workloads/cortex/tf_api

1 file changed

+20
-2
lines changed

pkg/workloads/cortex/tf_api/api.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,29 @@
6868
}
6969

7070
DTYPE_TO_TF_TYPE = {
71-
"DT_INT32": tf.int32,
72-
"DT_INT64": tf.int64,
7371
"DT_FLOAT": tf.float32,
72+
"DT_DOUBLE": tf.float64,
73+
"DT_INT32": tf.int32,
74+
"DT_UINT8": tf.uint8,
75+
"DT_INT16": tf.int16,
76+
"DT_INT8": tf.int8,
7477
"DT_STRING": tf.string,
78+
"DT_COMPLEX64": tf.complex64,
79+
"DT_INT64": tf.int64,
7580
"DT_BOOL": tf.bool,
81+
"DT_QINT8": tf.qint8,
82+
"DT_QUINT8": tf.quint8,
83+
"DT_QINT32": tf.qint32,
84+
"DT_BFLOAT16": tf.bfloat16,
85+
"DT_QINT16": tf.qint16,
86+
"DT_QUINT16": tf.quint16,
87+
"DT_UINT16": tf.uint16,
88+
"DT_COMPLEX128": tf.complex128,
89+
"DT_HALF": tf.float16,
90+
"DT_RESOURCE": tf.resource,
91+
"DT_VARIANT": tf.variant,
92+
"DT_UINT32": tf.uint32,
93+
"DT_UINT64": tf.uint64,
7694
}
7795

7896

0 commit comments

Comments
 (0)