- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for StringAttr (0.16 sec)
-
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
if (dict_attr) { TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("inputs"))) << "inputs missing in entry function attribute"; TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("outputs"))) << "outputs missing in entry function attribute"; mlir::cast<mlir::StringAttr>(dict_attr.get("inputs")) .getValue()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
block_arg.getLoc(), DenseIntElementsAttr::get( RankedTensorType::get({1, num_replicas}, builder.getIntegerType(32)), group_assignment_val)); StringAttr reduce_op = builder.getStringAttr("Add"); StringAttr mode = builder.getStringAttr("CrossReplica"); return builder.create<XlaAllReduceOp>(block_arg.getLoc(), block_arg.getType(),
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/lite/flatbuffer_export.cc
flex_builder->Bool(name.c_str(), array[i].cast<mlir::BoolAttr>().getValue()); } else if (llvm::isa<mlir::StringAttr>(attr)) { flex_builder->String(name.c_str(), array[i].cast<mlir::StringAttr>().getValue().str()); } else if (llvm::isa<mlir::vhlo::BooleanV1Attr>(array[i])) { flex_builder->Bool(name.c_str(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
// execution. if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(op)) return std::nullopt; if (!HasValidHardwareTarget(op)) return std::nullopt; auto device = op->getAttrOfType<mlir::StringAttr>(mlir::TFL::tac::kDevice); if (device == nullptr) return std::nullopt; llvm::StringRef device_name_str = device.getValue(); return device_name_str.str(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
// Constraint that attribute is string with value either "SAME" or "VALID" def IsSameOrValid : AttrConstraint< CPred<"$_self.cast<StringAttr>().getValue() == \"SAME\" || " # "$_self.cast<StringAttr>().getValue() == \"VALID\"">, "'SAME' or 'VALID' paddings">; def TFL_GetMirrorPaddingType : NativeCodeCall< "mlir::TFL::MirrorPaddingTypeAttr::get($_builder.getContext(), " #
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
} mlir::LogicalResult GetTopology(mlir::tf_device::ClusterOp cluster, std::string& topology) { mlir::StringAttr topology_attr = cluster->getAttrOfType<mlir::StringAttr>(tensorflow::kTopologyAttr); if (topology_attr) { topology = topology_attr.getValue(); return mlir::success(); } else { return cluster.emitOpError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
// XlaGather op utilities. //===----------------------------------------------------------------------===// bool HasValidGatherDims(StringAttr attr) { ::xla::GatherDimensionNumbers dims; return dims.ParseFromString(attr.getValue().str()); } GatherDimensionNumbersAttr GetGatherDimNumsAttr(StringAttr attr, Builder *builder) { ::xla::GatherDimensionNumbers dims;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
std::vector<std::string> disabled_checks; for (auto attr : op.getDisabledChecks().getAsRange<StringAttr>()) { disabled_checks.push_back(attr.getValue().str()); } std::vector<std::string> platforms; for (auto attr : op.getPlatforms().getAsRange<StringAttr>()) { platforms.push_back(attr.getValue().str()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.td
def TFL_BoolFalse : AttrConstraint< CPred<"$_self.isa<BoolAttr>() && !$_self.cast<BoolAttr>().getValue()">, "whose value is false">; class TFL_StringEqualsTo<string value> : AttrConstraint< CPred<"$_self.cast<StringAttr>().getValue() == \"" # value # "\"">, "whose value equals to '" # value # "'">; // Ensures the array attribute's size is within the given maximum size. class TFL_ArrayMaxCount<int n> : AttrConstraint<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
); let results = (outs Res<TF_ResourceTensor, [{Handle to a table.}], [TF_LookupTableAlloc]>:$table_handle ); let builders = [ OpBuilder<(ins "StringAttr":$container, "StringAttr":$shared_name, "BoolAttr":$use_node_name_sharing, "TypeAttr":$key_dtype, "TypeAttr":$value_dtype), [{ build($_builder, $_state, mlir::RankedTensorType::get({},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0)