Home
last modified time | relevance | path

Searched refs:tftype (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops.cc221 #define HANDLE_TF_TYPE(tftype, enumerant, name) tftype##Type, in TensorFlowDialect() argument
222 #define HANDLE_LAST_TF_TYPE(tftype, enumerant, name) tftype##Type in TensorFlowDialect() argument
360 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in parseType() argument
361 if (data == name) return tftype##Type::get(getContext()); in parseType()
364 #define HANDLE_CUSTOM_TF_TYPE(tftype, enumerant, name) in parseType() argument
376 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in printType() argument
377 if (auto derived_ty = ty.dyn_cast<tftype##Type>()) { \ in printType()
381 #define HANDLE_CUSTOM_TF_TYPE(tftype, enumerant, name) \ in printType() argument
382 if (auto derived_ty = ty.dyn_cast<tftype##Type>()) { \ in printType()
383 Print##tftype##Type(derived_ty, os); \ in printType()
Dtf_types.cc92 #define HANDLE_TF_TYPE(tftype, enumerant, name) in classof() argument
93 #define HANDLE_TF_REF_TYPE(tftype, enumerant, name) tftype##Type, in classof() argument
94 #define HANDLE_LAST_TF_TYPE(tftype, enumerant, name) tftype##Type in classof() argument
142 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in get() argument
143 if (auto derived_ty = type.dyn_cast<tftype##Type>()) \ in get()
144 return tftype##RefType::get(ctx); in get()
146 #define HANDLE_TF_REF_TYPE(tftype, enumerant, name) in get() argument
175 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in RemoveRef() argument
176 if (isa<tftype##RefType>()) return tftype##Type::get(ctx); in RemoveRef()
178 #define HANDLE_TF_REF_TYPE(tftype, enumerant, name) in RemoveRef() argument
Dtf_types.h154 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ argument
155 class tftype##Type : public detail::TensorFlowTypeImpl<tftype##Type> { \
161 #define HANDLE_CUSTOM_TF_TYPE(tftype, enumerant, name) argument
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_type.cc81 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in ConvertDataType() argument
83 *type = builder.getType<mlir::TF::tftype##Type>(); \ in ConvertDataType()
140 #define HANDLE_TF_TYPE(tftype, enumerant, name) \ in ConvertScalarTypeToDataType() argument
141 if (type.isa<mlir::TF::tftype##Type>()) { \ in ConvertScalarTypeToDataType()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/
Dderived_size_attr.mlir13 …%dim:2 = tf_executor.island wraps "tf.Const"() {dtype = "tftype$DT_INT32", value = dense<0> : tens…
14 …%input:2 = tf_executor.island wraps "tf.Const"() {dtype = "tftype$DT_INT32", value = dense<1.0> : …
/external/tensorflow/tensorflow/python/kernel_tests/
Dvariable_ops_test.py48 def _initFetch(self, x, tftype, use_gpu=None): argument
50 p = state_ops.variable_op(x.shape, tftype)
62 tftype = _NP_TO_TF[dtype]
63 self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=False))
67 self.assertAllEqual(x, self._initFetch(x, tftype, use_gpu=True))