- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 101 for getAttrOfType (0.28 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc
} mlir::LogicalResult ExtractTfVersions(mlir::ModuleOp module, VersionDef* versions) { versions->Clear(); auto version_attr = module->getAttrOfType<mlir::DictionaryAttr>("tf.versions"); if (!version_attr) return mlir::failure(); auto producer = mlir::dyn_cast_or_null<mlir::IntegerAttr>(version_attr.get("producer")); if (!producer) return mlir::failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.h
inline bool TFDataFormatIsNHWC(Operation *op) { auto attr = op->getAttrOfType<StringAttr>("data_format"); return !attr || attr.getValue() == "NHWC"; } // Returns true if the given TensorFlow op does not have a `data_format` // attribute (then default to "NDHWC"), or its `data_format` attribute is // "NDHWC". inline bool TFDataFormatIsNDHWC(Operation *op) { auto attr = op->getAttrOfType<StringAttr>("data_format");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/restore_function_name.cc
if (!call_op->hasAttr(kOriginalStablehloEntryFunctionAttrName)) { return; } const auto original_function_name = call_op->getAttrOfType<StringAttr>( kOriginalStablehloEntryFunctionAttrName); const auto current_function_name = call_op->getAttrOfType<FlatSymbolRefAttr>( TF::kStablehloEntryFunctionAttrName); if (!original_function_name || !current_function_name) { return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
StringRef device; if (auto attr = op->getAttrOfType<StringAttr>("device")) { device = attr.getValue(); } StringRef container; if (auto attr = op->getAttrOfType<StringAttr>("container")) { container = attr.getValue(); } StringRef shared_name; if (auto attr = op->getAttrOfType<StringAttr>("shared_name")) { shared_name = attr.getValue(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc
return non_const_arg->template hasAttrOfType<StringAttr>(name) && ExplainMatchResult( value_matcher, non_const_arg->template getAttrOfType<StringAttr>(name).str(), result_listener); } // Matches an operation that has a FlatSymbolRefAttr whose name is `name` and // value matches `value_matcher`. MATCHER_P2(HasSymNameAttr, name, value_matcher,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 21:41:08 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
auto result = convert.RewriteFunc(); EXPECT_FALSE(failed(result)); fused_lstm_func_.dump(); // verify transpose EXPECT_EQ( fused_lstm_func_->getAttrOfType<StringAttr>(kTFImplements).getValue(), convert.GetCompositeOpName()); EXPECT_EQ(fused_lstm_func_.getNumArguments(), 5); EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
WalkResult result = 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 Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
auto num_cores_per_replica_attr = cluster->getAttrOfType<mlir::IntegerAttr>( tensorflow::kNumCoresPerReplicaAttr); if (!num_cores_per_replica_attr) return cluster.emitOpError( CreateMissingAttributeMsg(tensorflow::kNumCoresPerReplicaAttr)); int num_cores_per_replica = num_cores_per_replica_attr.getInt(); auto topology_attr = cluster->getAttrOfType<StringAttr>("topology"); if (!topology_attr)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
// anyways. void UnmarkChildren(ModuleOp module) { module->walk([&](Operation* op) { if (!op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) return; Operation* iter_op = op; bool remove_attr = false; while (auto* parent_op = iter_op->getParentOp()) { if (parent_op->getAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) { remove_attr = true; break; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
// propagated through. bool IsSupportedExecutorOp(Operation& op) { auto ops_have_same_device = [](Operation* lhs, Operation* rhs) { auto lhs_device_attr = lhs->getAttrOfType<StringAttr>(kDeviceAttr); auto rhs_device_attr = rhs->getAttrOfType<StringAttr>(kDeviceAttr); return (!lhs_device_attr && !rhs_device_attr) || (lhs_device_attr && rhs_device_attr &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0)