Skip to content

Commit 8956b63

Browse files
committed
Add TensorFlow data types
(cherry picked from commit 73471d5)
1 parent 73bd499 commit 8956b63

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,29 @@
6767
}
6868

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

7795

0 commit comments

Comments
 (0)