- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for DecodeShardingAttribute (0.3 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
} bool IsReplicatedSharding(const xla::OpSharding& sharding) { return sharding.type() == xla::OpSharding::REPLICATED || IsOtherReplicatedSharding(sharding); } mlir::LogicalResult DecodeShardingAttribute(const std::string& shard_str, xla::OpSharding& sharding, bool report_error) {
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/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
auto sharding_attr = mlir::dyn_cast<StringAttr>(attr); if (!sharding_attr) return op->emitOpError( llvm::formatv(kBadStringArrayElementMsg, name, index)); if (tensorflow::DecodeShardingAttribute(sharding_attr, *sharding_ptr) .failed()) { return op->emitOpError(llvm::formatv(kBadArrayElementMsg, name, index, sharding_attr.getValue(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
const OpShardingVariant& sharding_or_op) { xla::OpSharding sharding; const auto sharding_string = GetShardingStringFromVariant(sharding_or_op); if (!sharding_string) return std::nullopt; if (tensorflow::DecodeShardingAttribute(sharding_string->str(), sharding, false) .failed()) { return std::nullopt; } return sharding; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc
const XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns, xla::Shape* shape) { if (!sharding) return absl::OkStatus(); xla::OpSharding op_sharding; if (tensorflow::DecodeShardingAttribute(sharding, op_sharding).failed()) { return errors::InvalidArgument("failed to parse sharding '", sharding.getValue().str(), "'"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 17:24:39 UTC 2024 - 45.3K bytes - Viewed (0)