/external/tensorflow/tensorflow/compiler/mlir/lite/utils/ |
D | convert_type.h | 42 mlir::Type GetShapeStrippedType(mlir::TypeAttr type_attr); 46 bool NotFromQuantOpOrSameQuantType(mlir::Value val, mlir::TypeAttr qtype_attr);
|
D | lstm_utils.cc | 421 /*input_to_input_intermediate=*/mlir::TypeAttr(), in RewriteFunc() 422 /*input_to_forget_intermediate=*/mlir::TypeAttr(), in RewriteFunc() 423 /*input_to_cell_intermediate=*/mlir::TypeAttr(), in RewriteFunc() 424 /*input_to_output_intermediate=*/mlir::TypeAttr(), in RewriteFunc() 425 /*effective_hidden_scale_intermediate=*/mlir::TypeAttr()); in RewriteFunc() 749 /*input_to_input_intermediate=*/mlir::TypeAttr(), in ConvertKerasLSTMLayer() 750 /*input_to_forget_intermediate=*/mlir::TypeAttr(), in ConvertKerasLSTMLayer() 751 /*input_to_cell_intermediate=*/mlir::TypeAttr(), in ConvertKerasLSTMLayer() 752 /*input_to_output_intermediate=*/mlir::TypeAttr(), in ConvertKerasLSTMLayer() 753 /*effective_hidden_scale_intermediate=*/mlir::TypeAttr()); in ConvertKerasLSTMLayer()
|
D | convert_type.cc | 147 mlir::Type GetShapeStrippedType(mlir::TypeAttr type_attr) { in GetShapeStrippedType() 157 bool NotFromQuantOpOrSameQuantType(mlir::Value val, mlir::TypeAttr qtype_attr) { in NotFromQuantOpOrSameQuantType()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/c/ |
D | c_api_unified_experimental_mlir.cc | 310 attrs_[attr_name] = TypeAttr::get(mlir_type); in SetAttrType() 371 TypeAttr type_attr = attr.dyn_cast<TypeAttr>(); in Create() 395 TypeAttr type_attr = attr.dyn_cast<TypeAttr>(); in Create() 414 TypeAttr type_attr = attr.dyn_cast<TypeAttr>(); in Create() 600 attrs_[arg_def.type_attr()] = TypeAttr::get(expected_type); in AddInput() 643 TypeAttr::get(cast<MlirTensor>(inputs.front())->getElementType()); in AddInputList() 650 types.push_back(TypeAttr::get(cast<MlirTensor>(input)->getElementType())); in AddInputList()
|
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/ |
D | TargetAndABI.td | 47 StructFieldAttr<"a_type", TypeAttr>, 48 StructFieldAttr<"b_type", TypeAttr>, 49 StructFieldAttr<"c_type", TypeAttr>, 50 StructFieldAttr<"result_type", TypeAttr>,
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ |
D | quantization_context.cc | 133 input_specs.push_back(TypeAttr::get(requantize.params)); in Finalize() 135 input_specs.push_back(TypeAttr::get(state.params)); in Finalize() 148 output_specs.push_back(TypeAttr::get(requantize.params)); in Finalize() 150 output_specs.push_back(TypeAttr::get(state.params)); in Finalize() 289 params_attr.cast<TypeAttr>().getValue().dyn_cast<QuantParams>(); in InitializeState()
|
D | device_target.cc | 110 input_specs.push_back(spec.cast<TypeAttr>().getValue()); in DecomposeMultiplyAccumulateScale() 113 out_specs.push_back(spec.cast<TypeAttr>().getValue()); in DecomposeMultiplyAccumulateScale() 163 .cast<TypeAttr>() in DecomposeSameScale()
|
D | quantization_utils.cc | 124 TypeAttr RescaleQuantizedType(Type input, Attribute factor) { in RescaleQuantizedType() 148 return TypeAttr::get(new_type); in RescaleQuantizedType() 155 TypeAttr GetQuantizedTypeAttr(Builder builder, Type input_type, Attribute min, in GetQuantizedTypeAttr() 185 return TypeAttr::get(final_type); in GetQuantizedTypeAttr() 251 TypeAttr CastQuantizedTypeAttrFromExpressedType(Builder builder, in CastQuantizedTypeAttrFromExpressedType() 252 TypeAttr source, Type target, in CastQuantizedTypeAttrFromExpressedType() 268 return TypeAttr::get(final_type); in CastQuantizedTypeAttrFromExpressedType()
|
D | quantization_utils.h | 484 TypeAttr RescaleQuantizedType(Type input, Attribute factor); 498 TypeAttr GetQuantizedTypeAttr(Builder builder, Type input_type, Attribute min, 515 TypeAttr CastQuantizedTypeAttrFromExpressedType(Builder builder, 516 TypeAttr source, Type target,
|
/external/llvm-project/debuginfo-tests/llvm-prettyprinters/gdb/ |
D | mlir-support.cpp | 36 mlir::Attribute TypeAttr = mlir::TypeAttr::get(IndexType); variable
|
D | mlir-support.gdb | 98 # CHECK: cast<mlir::TypeAttr> 100 p TypeAttr
|
/external/llvm-project/mlir/lib/IR/ |
D | FunctionSupport.cpp | 56 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionArguments() 92 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionResults()
|
D | BuiltinDialect.cpp | 59 OpaqueElementsAttr, SparseElementsAttr, StringAttr, TypeAttr, in initialize() 99 state.addAttribute(getTypeAttrName(), TypeAttr::get(type)); in build()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | Attributes.td | 29 class TypeAttr<string S> : Attr<S>; 52 def ByVal : TypeAttr<"byval">; 55 def ByRef : TypeAttr<"byref">; 161 def Preallocated : TypeAttr<"preallocated">; 207 def StructRet : TypeAttr<"sret">; 251 def MustProgress : TypeAttr<"mustprogress">;
|
/external/tensorflow/tensorflow/compiler/mlir/tfr/passes/ |
D | raise_to_tf.cc | 149 cast_op.getInputElementType().cast<TypeAttr>().getValue(); in CastToNonDerivedType() 165 Type target_input_type = input_types[0].cast<TypeAttr>().getValue(); in CastValuesToSameType() 168 Type current_input_type = input_types[i].cast<TypeAttr>().getValue(); in CastValuesToSameType() 332 attrs.lookup(attr_key.getValue()).cast<TypeAttr>().getValue())); in DeriveOutputTypes() 345 attrs.lookup(attr_keys[1].getValue()).cast<TypeAttr>().getValue(); in DeriveOutputTypes()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | convert_attr.cc | 45 return mlir::TypeAttr::get(type); in ConvertNonFuncAttributeValue() 64 attrs.push_back(mlir::TypeAttr::get(type)); in ConvertNonFuncAttributeValue()
|
D | export_utils.cc | 171 Status ConvertAttribute(const mlir::TypeAttr& type, bool remove_ref_type, in ConvertAttribute() 215 } else if (auto attr = a.dyn_cast<mlir::TypeAttr>()) { in ConvertAttribute() 385 .Case<mlir::ArrayAttr, mlir::TypeAttr>([&](auto derived_attr) { in ConvertAttributes()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | prepare_quantize_helper.h | 73 TypeAttr attr = op->template getAttrOfType<TypeAttr>( in GetIntermediateElementType() 438 TypeAttr attr = in processIntermediates() 439 op->template getAttrOfType<TypeAttr>(intermediate_attributes[index]); in processIntermediates() 488 TypeAttr::get(qtype.castFromExpressedType( in processIntermediates()
|
D | default_quant_params.cc | 180 TypeAttr type_attr = TypeAttr::get(new_type); in QuantizeValue()
|
/external/llvm-project/mlir/test/mlir-tblgen/ |
D | op-attribute.td | 113 TypeAttr:$type_attr 131 …F: if (!(((tblgen_some_type_attr.isa<::mlir::TypeAttr>())) && ((tblgen_some_type_attr.cast<::mlir:… 134 // DEF: if (!(((tblgen_type_attr.isa<::mlir::TypeAttr>())) && ((tblgen_type_attr.cast<::mlir::TypeA…
|
/external/llvm-project/mlir/include/mlir/Dialect/Tosa/Utils/ |
D | QuantUtils.h | 63 TypeAttr buildQTypeAttrFromMinMax(OpBuilder builder, Type inputDType,
|
/external/llvm-project/clang/include/clang/AST/ |
D | Attr.h | 114 class TypeAttr : public Attr { 116 TypeAttr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in TypeAttr() function
|
/external/llvm-project/mlir/lib/Dialect/Quant/IR/ |
D | QuantOps.cpp | 46 if (auto typeAttr = quantSpec.dyn_cast<TypeAttr>()) { in isValidQuantizationSpec()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/lite/ |
D | tfl_to_std.cc | 58 TypeAttr::get(out_type)); in ConvertMlirQuantOpsToTFLQuantOps()
|
/external/clang/include/clang/Basic/ |
D | Attr.td | 313 class TypeAttr : Attr { 373 def AddressSpace : TypeAttr { 718 def OpenCLPrivateAddressSpace : TypeAttr { 723 def OpenCLGlobalAddressSpace : TypeAttr { 728 def OpenCLLocalAddressSpace : TypeAttr { 733 def OpenCLConstantAddressSpace : TypeAttr { 738 def OpenCLGenericAddressSpace : TypeAttr { 977 def NeonPolyVectorType : TypeAttr { 983 def NeonVectorType : TypeAttr { 1113 def TypeNonNull : TypeAttr { [all …]
|