/external/tensorflow/tensorflow/compiler/mlir/lite/utils/ |
D | validators.h | 34 auto attr = op->getAttrOfType<StringAttr>("data_format"); in TFDataFormatIsNHWC() 42 auto attr = op->getAttrOfType<StringAttr>("data_format"); in TFDataFormatIsNDHWC() 97 auto padding_attr = op->getAttrOfType<StringAttr>("padding"); in TFPaddingIsSameOrValid()
|
D | validators.cc | 30 auto attr = op->getAttrOfType<ArrayAttr>(name); in TFIntListIs1XY1() 70 auto attr = op->getAttrOfType<ArrayAttr>(name); in TFIntListIs1XYZ1()
|
D | lstm_utils_test.cc | 129 fused_lstm_func_->getAttrOfType<StringAttr>(kTFImplements).getValue(), in TEST_F() 202 EXPECT_EQ(fused_lstm_func_cifg_->getAttrOfType<StringAttr>(kTFImplements) in TEST_F() 227 fused_ln_lstm_func_->getAttrOfType<StringAttr>(kTFImplements).getValue(), in TEST_F()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | test_visitor_util.cc | 67 op->getAttrOfType<mlir::BoolAttr>("interrupt_before_all")) in runOnFunction() 72 op->getAttrOfType<mlir::BoolAttr>("interrupt_after_all")) in runOnFunction() 77 op->getAttrOfType<mlir::IntegerAttr>("interrupt_after_region")) in runOnFunction()
|
D | executor_tpuv1_island_coarsening.cc | 131 wrapped_op.getAttrOfType<StringAttr>(kTpuReplicateAttr); in MergeIsland() 133 cluster_name = wrapped_op.getAttrOfType<StringAttr>(kTpuStatusAttr); in MergeIsland() 151 candidate_wrapped_op.getAttrOfType<StringAttr>(kTpuReplicateAttr); in MergeIsland() 154 candidate_wrapped_op.getAttrOfType<StringAttr>(kTpuStatusAttr); in MergeIsland() 271 op->getAttrOfType<StringAttr>(kTpuReplicateAttr); in runOnOperation() 273 cluster_name = op->getAttrOfType<StringAttr>(kTpuStatusAttr); in runOnOperation()
|
D | mark_ops_for_outside_compilation.cc | 218 if (parent->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) in HasOutsideCompiledAncestor() 259 !user->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) { in MarkVariantInputsOutputs() 307 if (!op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) return; in UnmarkChildren() 311 if (parent_op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) { in UnmarkChildren() 352 cluster->getAttrOfType<BoolAttr>(kAllowSoftPlacementAttr); in runOnOperation() 369 cluster->getAttrOfType<BoolAttr>(kAllowSoftPlacementAttr); in runOnOperation()
|
D | readonly_references_to_resources.cc | 66 ArrayAttr classes_attr = op->getAttrOfType<ArrayAttr>(kClassAttr); in GetNodeNameFromClassAttr() 72 classes_attr = identity_op->getAttrOfType<ArrayAttr>(kClassAttr); in GetNodeNameFromClassAttr() 142 variable_v2_op->getAttrOfType<StringAttr>("device"); in runOnFunction()
|
D | tensor_device_copy_conversion.cc | 58 arg.getDefiningOp()->getAttrOfType<StringAttr>( in runOnFunction() 63 StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnFunction()
|
D | constant_op_device_assignment.cc | 45 if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { in runOnOperation() 55 StringAttr device_attr = user_op->getAttrOfType<StringAttr>(kDeviceAttr); in runOnOperation()
|
D | tpu_rewrite_pass.cc | 153 op->getAttrOfType<StringAttr>(kStepMarkerLocationAttr); in SetMetadataProtoStepMarkerLocation() 178 auto padding_map = op->getAttrOfType<ArrayAttr>(kPaddingMapAttr); in SetMetadataProtoPaddingMap() 222 op->getAttrOfType<ArrayAttr>(tensorflow::kInputShardingAttr); in SetMetadataProtoArgs() 277 op->getAttrOfType<ArrayAttr>(tensorflow::kOutputShardingAttr); in SetMetadataProtoRetvals() 317 auto use_spmd_attr = op->getAttrOfType<BoolAttr>(kUseXlaSpmdAttr); in SetMetadataProtoFromClusterFuncOp() 576 auto num_cores_per_replica_attr = cluster_func->getAttrOfType<IntegerAttr>( in Rewrite() 585 cluster_func->getAttrOfType<StringAttr>(tensorflow::kTopologyAttr); in Rewrite() 590 auto device_assignment_attr = cluster_func->getAttrOfType<mlir::ArrayAttr>( in Rewrite() 740 auto replicate_attr = op->getAttrOfType<StringAttr>("_tpu_replicate"); in runOnOperation()
|
D | tpu_device_propagation.cc | 63 auto lhs_device_attr = lhs->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedExecutorOp() 64 auto rhs_device_attr = rhs->getAttrOfType<StringAttr>(kDeviceAttr); in IsSupportedExecutorOp() 175 auto device_attr = op_to_update->getAttrOfType<StringAttr>(kDeviceAttr); in PropagateDevicesInGraph()
|
D | tpu_update_embedding_enqueue_op_inputs.cc | 51 auto embedding_attr = op->getAttrOfType<StringAttr>(kTPUEmbeddingAttr); in ExtractEmbeddingAttribute() 129 embedding_op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr); in UpdateEmbeddingEnqueueOpInput()
|
D | cross_host_transfer.cc | 88 if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kOpDeviceAttr)) { in runOnFunction() 108 defining_op->getAttrOfType<StringAttr>(kOpDeviceAttr)) { in runOnFunction()
|
D | tf_device_assignment.cc | 39 if (auto device_attr = op->getAttrOfType<StringAttr>("device")) { in runOnFunction()
|
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/ |
D | ConvertLaunchFuncToLLVMCalls.cpp | 55 IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName()); in calculateGlobalIndex() 78 op->getAttrOfType<IntegerAttr>(descriptorSetName()); in createGlobalVariableWithBindName() 79 IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName()); in createGlobalVariableWithBindName() 90 op->getAttrOfType<IntegerAttr>(descriptorSetName()); in hasDescriptorSetAndBinding() 91 IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName()); in hasDescriptorSetAndBinding()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/ |
D | device_target.cc | 134 auto min = rop->getAttrOfType<FloatAttr>("min"); in DecomposeMultiplyAccumulateScale() 135 auto max = rop->getAttrOfType<FloatAttr>("max"); in DecomposeMultiplyAccumulateScale() 169 auto min = rop->getAttrOfType<FloatAttr>("min"); in DecomposeSameScale() 170 auto max = rop->getAttrOfType<FloatAttr>("max"); in DecomposeSameScale()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | translate_utils.cc | 42 module->getAttrOfType<mlir::DictionaryAttr>("tf.versions"); in ExtractTfVersions() 70 auto versions = module->getAttrOfType<::mlir::DictionaryAttr>("tf.versions"); in GetTfGraphProducerVersion()
|
/external/llvm-project/mlir/include/mlir/Dialect/StandardOps/IR/ |
D | Ops.h | 63 return (*this)->getAttrOfType<FloatAttr>("value").getValue(); in getValue() 87 return (*this)->getAttrOfType<IntegerAttr>("value").getInt(); in getValue() 106 return (*this)->getAttrOfType<IntegerAttr>("value").getInt(); in getValue()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | prepare_composite_functions_tf.cc | 345 func->getAttrOfType<StringAttr>(kTFImplements); in runOnOperation() 351 auto tf_implements_attr = func->getAttrOfType<FuncAttr>(kTFImplements); in runOnOperation() 358 func->getAttrOfType<StringAttr>(kTFAPIImplements); in runOnOperation()
|
/external/llvm-project/flang/lib/Optimizer/Dialect/ |
D | FIROps.cpp | 243 op.template getAttrOfType<mlir::IntegerAttr>(OPTY::getPredicateAttrName()) in printCmpOp() 1035 auto a = getAttrOfType<mlir::DenseIntElementsAttr>(getTargetOffsetAttr()); in getSuccessorOperands() 1037 getAttrOfType<mlir::DenseIntElementsAttr>(getOperandSegmentSizeAttr()); in getSuccessorOperands() 1043 getAttrOfType<mlir::DenseIntElementsAttr>(getTargetOffsetAttr())); in targetOffsetSize() 1052 auto a = getAttrOfType<mlir::DenseIntElementsAttr>(getCompareOffsetAttr()); in getCompareOperands() 1059 auto a = getAttrOfType<mlir::DenseIntElementsAttr>(getCompareOffsetAttr()); in getCompareOperands() 1061 getAttrOfType<mlir::DenseIntElementsAttr>(getOperandSegmentSizeAttr()); in getCompareOperands() 1074 auto a = getAttrOfType<mlir::DenseIntElementsAttr>(getTargetOffsetAttr()); in getSuccessorOperands() 1076 getAttrOfType<mlir::DenseIntElementsAttr>(getOperandSegmentSizeAttr()); in getSuccessorOperands() 1156 getAttrOfType<mlir::DenseIntElementsAttr>(getCompareOffsetAttr())); in compareOffsetSize() [all …]
|
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/ |
D | NVVMDialect.cpp | 112 auto alayout = op->getAttrOfType<StringAttr>("alayout"); in verify() 113 auto blayout = op->getAttrOfType<StringAttr>("blayout"); in verify()
|
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/ |
D | embed_tf_framework.cc | 79 auto reuse_input_candidates = alloc->getAttrOfType<ArrayAttr>( in matchAndRewrite() 82 alloc->getAttrOfType<IntegerAttr>(TFAllocOp::kReuseOutputAttrName); in matchAndRewrite()
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/ |
D | LowerABIAttributesPass.cpp | 111 funcOp->getAttrOfType<spirv::EntryPointABIAttr>(entryPointAttrName); in lowerEntryPointABIAttr() 172 if (!funcOp->getAttrOfType<spirv::EntryPointABIAttr>( in matchAndRewrite() 274 if (funcOp->getAttrOfType<spirv::EntryPointABIAttr>(entryPointAttrName)) { in runOnOperation()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/python/ |
D | saved_model_to_tfl_flatbuffer.cc | 54 func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) { in HandleInputOutputArraysWithModule() 70 entry_function->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function"); in HandleInputOutputArraysWithModule()
|
/external/llvm-project/mlir/lib/Dialect/GPU/IR/ |
D | GPUDialect.cpp | 35 UnitAttr isKernelAttr = op->getAttrOfType<UnitAttr>(getKernelFuncAttrName()); in isKernel() 89 if (!launchOp->getAttrOfType<SymbolRefAttr>( in verifyOperationAttribute() 107 if (!kernelFunc->getAttrOfType<mlir::UnitAttr>( in verifyOperationAttribute() 231 auto sizeAttr = op->template getAttrOfType<DenseIntElementsAttr>(attrName); in addAsyncDependency() 477 if (!module->getAttrOfType<UnitAttr>( in verify() 483 auto kernelAttr = op->getAttrOfType<SymbolRefAttr>(op.getKernelAttrName()); in verify() 526 auto attr = (*this)->getAttrOfType<IntegerAttr>(attrName); in addWorkgroupAttribution()
|