- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for StringAttr (0.27 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
if (block_arg.getParentRegion() != &func_op.getRegion()) { return false; } if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>( block_arg.getArgNumber(), kTFDeviceAttr)) { return op_device == attr; } } else if (StringAttr attr = arg.getDefiningOp()->getAttrOfType<StringAttr>( kDeviceAttr)) { return op_device == attr; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc
rewriter.getStringAttr(mhlo_custom_call.getCallTargetName())); if (auto bc = mhlo_custom_call.getBackendConfig()) { if (auto stringattr = mlir::dyn_cast_or_null<mlir::StringAttr>(*bc)) { tfl_custom.setCustomOptionAttr( TFL::ConstBytesAttr::get(rewriter.getContext(), stringattr)); } } else { tfl_custom.setCustomOptionAttr( TFL::ConstBytesAttr::get(rewriter.getContext(), "")); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.cc
namespace mlir { namespace TF { using ::tensorflow::kValidDeviceTypes; LogicalResult HasValidCompilationAndReplicationAttributes(Operation& op) { auto replicate_attr = op.getAttrOfType<StringAttr>(kReplicationInfoAttr); auto compile_attr = op.getAttrOfType<StringAttr>(kCompileDeviceTypeAttr); if (!replicate_attr && !compile_attr) return success(); if (!replicate_attr || !compile_attr)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.h
for (auto op_attr : op_func_attr_array) { auto key_value = mlir::dyn_cast<mlir::ArrayAttr>(op_attr); if (!key_value || key_value.getValue().size() != 2 || !mlir::isa<mlir::StringAttr>(key_value.getValue()[0]) || !mlir::isa<mlir::StringAttr>(key_value.getValue()[1])) return op.emitOpError() << "each op_func_attr should be a key-value " "pair, where both the key and the value are "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
// Parse node name from the `shared_name` attribute first. The variable v2 op // relies on the share name to look up from the TensorFlow's resource manager. StringAttr shared_name_attr = op->getAttrOfType<StringAttr>(kSharedNameAttr); if (shared_name_attr) { auto shared_name = StringRef(shared_name_attr.getValue()); if (!shared_name.empty()) { return shared_name; } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
const ArrayRef<Attribute> index_path_attrs = mlir::cast<ArrayAttr>(arg_attrs.get("tf_saved_model.index_path")) .getValue(); EXPECT_THAT(index_path_attrs, SizeIs(1)); StringAttr index_path = mlir::dyn_cast_or_null<StringAttr>(index_path_attrs[0]); EXPECT_THAT(index_path, NotNull()); EXPECT_THAT(index_path, Eq("arg_0:0")); } TEST_F(ConvertAssetArgsTest, NonBoundedArgsNotModified) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.h
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"); return !attr || attr.getValue() == "NDHWC";
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/tensorflow/transforms/rewrite_util.cc
namespace mlir { namespace TF { namespace { const char kDeviceAttr[] = "device"; const char kDeviceGpu[] = "GPU"; std::optional<std::string> GetOpDevice(mlir::Operation *op) { mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr); if (!device || device.getValue().empty()) { return std::nullopt; } tensorflow::DeviceNameUtils::ParsedName parsed_name;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc
: CallSiteLoc(CallSiteLoc::get( /*callee=*/NameLoc::get( StringAttr::get(context, ConcatNodeAndFuncName(unit.node_name(), unit.func_name())), /*childLoc=*/NameLoc::get( StringAttr::get(context, unit.op_type()))), /*caller=*/NameLoc::get(StringAttr::get( context, GenerateQuantizationUnitString(unit))))) {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc
const ParseExecuteOpOptions &options) { auto chain_type = builder.getType<compiler::ChainType>(); mlir::IntegerAttr op_key; mlir::IntegerAttr cost; mlir::StringAttr device; mlir::StringAttr op_name; mlir::SymbolRefAttr f; llvm::SmallVector<mlir::OpAsmParser::UnresolvedOperand, 4> in_chains; llvm::SmallVector<mlir::OpAsmParser::UnresolvedOperand, 4> operands; mlir::NamedAttrList op_attrs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0)