Home
last modified time | relevance | path

Searched refs:getSubtypes (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Ddecompose_resource_ops.cc48 if (resource_type.getSubtypes().size() == 1) in GetResourceSubtypeOrDefault()
49 return resource_type.getSubtypes().front(); in GetResourceSubtypeOrDefault()
59 .getSubtypes() in HasResourceSubtype()
68 .getSubtypes() in GetResourceSubtype()
Dtpu_resource_partitioning.cc49 .getSubtypes())) in AllResourceTypesHaveSubtypes()
59 .getSubtypes() in GetResourceSubtype()
Dpromote_resources_to_args.cc125 if (resource_type.getSubtypes().size() != 1) in ValidateResourceArgument()
204 Type arg_type = resource_type.getSubtypes().front(); in PromoteResourcesToArguments()
Dlift_variables.cc195 arg_type.getElementType().cast<TF::ResourceType>().getSubtypes(); in LiftVariables()
Dcollection_ops_util.cc220 .getSubtypes()[0]}, in ReadLocalVariable()
Dtpu_variable_runtime_reformatting.cc192 .getSubtypes(); in AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping()
Dtensor_list_ops_decomposition.cc555 if (!variant_type || variant_type.getSubtypes().size() != 1) return failure(); in GetElementShapeFromResultType()
556 TensorType tensor_type = variant_type.getSubtypes().front(); in GetElementShapeFromResultType()
Dtensor_array_ops_decomposition.cc369 .getSubtypes()[0] in HandleTensorArraySizeV3Op()
387 .getSubtypes()[0] in CreateAndInitializeGradVariable()
Dresource_op_lifting.cc156 auto subtypes = resource_type.getSubtypes(); in GetResourceSubtype()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dshape_inference_utils.cc98 if (!type_with_subtypes || type_with_subtypes.getSubtypes().empty()) { in GetSubtypesHelper()
103 for (auto subtype : type_with_subtypes.getSubtypes()) { in GetSubtypesHelper()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_types.cc193 return variant_type.getSubtypes(); in GetSubtypes()
195 return resource_type.getSubtypes(); in GetSubtypes()
Dtf_types.h228 ArrayRef<TensorType> getSubtypes() { return Base::getImpl()->subtypes_; } in getSubtypes() function
Dtf_ops.cc415 ArrayRef<TensorType> subtypes = ty.getSubtypes(); in PrintTypeWithSubtype()
Dtf_ops_n_z.cc2198 if (variant_type.getSubtypes().empty()) return {}; in fold()
2199 return ConvertShapeToAttr(variant_type.getSubtypes()[0], width); in fold()
2809 auto subtypes = resource_type.getSubtypes(); in Verify()
2813 op, resource_type.getSubtypes().front(), op.getType()); in Verify()
2827 if (resource_type.getSubtypes().empty()) return {}; in fold()
2828 return ConvertShapeToAttr(resource_type.getSubtypes()[0], width); in fold()
Dtf_ops.td50 if (handle_dtype().getSubtypes().size() != 1) {
63 TensorType element_type() { return handle_dtype().getSubtypes()[0]; }
876 if (resource_type().getSubtypes().size() != 1) {
897 TensorType resource_subtype() { return resource_type().getSubtypes()[0]; }
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlower_static_tensor_list.cc128 if (handle_dtype.getSubtypes().empty()) { in GetTensorTypeForTensorList()
131 return PrependLeadingDimIfRanked(-1, handle_dtype.getSubtypes()[0], rewriter); in GetTensorTypeForTensorList()
200 ArrayRef<TensorType> subtypes = variant_ty.getSubtypes(); in matchAndRewrite()