- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 60 for getAttrOfType (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
} void EncodeSharding(mlir::Operation* op, llvm::StringRef shard_str) { if (!op->hasAttrOfType<mlir::StringAttr>(shard_str)) return; ::xla::OpSharding sharding; auto sharding_proto_str = op->getAttrOfType<mlir::StringAttr>(shard_str).getValue().str(); if (!sharding.ParseFromString(sharding_proto_str)) return; auto hlosharding = xla::HloSharding::FromProto(sharding); if (!hlosharding.ok()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:28:13 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
tensor_cast.getResult()); return success(); } LogicalResult ConvertLSTMCellSimpleToFusedLSTM::InitializeFromFuncAttributes() { auto attr = fused_func_op_->getAttrOfType<StringAttr>(kTFImplements); if (!attr) { return fused_func_op_.emitError() << "Invalid function attribute, expected " << kTFImplements << " attribute " "not found"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
} else { owner_op = attr_to_op_map[attribute]; std::string new_attr_map_str{}; if (owner_op->hasAttr(kAttrMapAttribute)) { new_attr_map_str = owner_op->getAttrOfType<StringAttr>(kAttrMapAttribute).str(); absl::StrAppend(&new_attr_map_str, ","); } // Append "<identifier>:<attribute_name>". Ex) "0:transpose_a".
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
Region& body = while_op.getBody(); Region& cond = while_op.getCond(); llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> mapping; auto mirrored_variable_indices_attr = replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr); if (!mirrored_variable_indices_attr) return mapping; // Finds the mapping from a replicate argument to an execute operand.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dilated_conv.h
} // Make sure Conv2D has 'VALID' padding. if (op->template getAttrOfType<StringAttr>("padding").getValue() != "VALID") { return rewriter.notifyMatchFailure(op, "Conv2D op doesn't have valid padding"); } // Make sure dilations are all ones if set. const ArrayAttr& dilations = op->template getAttrOfType<ArrayAttr>("dilations"); if (dilations && !TFIntListIsAllOnes(dilations)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
// index. template <typename LstmOp> inline QuantizedType GetIntermediateElementType(LstmOp op, int tensor_index) { if (tensor_index < 0 || tensor_index > 4) return nullptr; TypeAttr attr = op->template getAttrOfType<TypeAttr>( intermediate_attributes[tensor_index]); if (!attr) { return nullptr; } return QuantizedType::getQuantizedElementType(attr.getValue()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
module.walk([&](stablehlo::CustomCallOp op) { if (!IsTfFuncCustomCall(op)) { return WalkResult::advance(); } auto backend_config = op->getAttrOfType<DictionaryAttr>(kTfBackendConfigAttrName); if (!backend_config) { op->emitOpError() << "is missing attribute '" << kTfBackendConfigAttrName << "'"; return WalkResult::interrupt();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc
std::string group_annotation = absl::StrCat( "p", std::to_string(parallel_group_idx), ":", std::to_string(i)); if (auto parallel_group_attr = parallel_execute_op->getAttrOfType<StringAttr>( TF::kParallelExecAnnotation)) { // Extend the existing attribute so that nested parallel execution // structure is supported.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc
} StringAttr GetReplicationAttr(mlir::Operation* op) { return op->getAttrOfType<StringAttr>(TF::kReplicationInfoAttr); } StringAttr GetReplicationAttr(TF::TPUCompilationResultOp op) { // Special case for getting the replication region for // TPUCompilationResultsOp. return op->getAttrOfType<StringAttr>(kTpuCompilationStatus); } int64_t GetNumOps(func::FuncOp func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/get_alternative_subgraph.cc
} SmallVector<func::FuncOp, 25> funcs_to_be_processed; // We only process if func has device annotations. for (auto func : module.getOps<func::FuncOp>()) { auto device_attr = func->getAttrOfType<StringAttr>(kDevice); if (device_attr != nullptr) funcs_to_be_processed.push_back(func); } OpBuilder builder(module); // Go head to process those funcs.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 12.3K bytes - Viewed (0)