Home
last modified time | relevance | path

Searched refs:split_dimension (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/core/ops/
Dtpu_cross_replica_ops.cc42 int split_dimension; in __anon481f6f7f0102() local
54 TF_RETURN_IF_ERROR(c->GetAttr("split_dimension", &split_dimension)); in __anon481f6f7f0102()
55 if (split_dimension < 0 || split_dimension >= rank) { in __anon481f6f7f0102()
56 return errors::InvalidArgument("split_dimension ", split_dimension, in __anon481f6f7f0102()
68 if (i == split_dimension) { in __anon481f6f7f0102()
Darray_ops.cc574 DimensionHandle split_dimension; in __anonf6523ebd0a02() local
577 0, c->Rank(input), &split_dimension)); in __anonf6523ebd0a02()
580 if (!c->ValueKnown(split_dimension)) { in __anonf6523ebd0a02()
587 int64 split_dim = c->Value(split_dimension); in __anonf6523ebd0a02()
610 DimensionHandle split_dimension; in __anonf6523ebd0b02() local
613 2, c->Rank(input), &split_dimension)); in __anonf6523ebd0b02()
627 } else if (size_splits == nullptr && c->ValueKnown(split_dimension)) { in __anonf6523ebd0b02()
633 c->Value(split_dimension), in __anonf6523ebd0b02()
637 } else if (size_splits == nullptr && !c->ValueKnown(split_dimension)) { in __anonf6523ebd0b02()
648 int64 split_dim = c->Value(split_dimension); in __anonf6523ebd0b02()
/external/tensorflow/tensorflow/compiler/xla/experimental/xla_sharding/
Dxla_sharding.py93 def split(cls, tensor, split_dimension, num_devices): argument
109 if (shape[split_dimension] is not None and
110 shape[split_dimension] < num_devices):
113 (shape, split_dimension, num_devices))
116 tile_assignment_dims[split_dimension] = num_devices
221 split_dimension, argument
236 Sharding.split(tensor, split_dimension, num_devices).apply_to_tensor(
/external/tensorflow/tensorflow/python/tpu/ops/
Dtpu_ops.py47 split_dimension, argument
73 split_dimension=split_dimension,
88 split_dimension=op.get_attr("concat_dimension"),
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AllToAll.pbtxt37 name: "split_dimension"
52 `split_dimension` and send to the other replicas given group_assignment. After
62 split_dimension=1
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DAllToAll.pbtxt30 name: "split_dimension"
83 name: "split_dimension"
/external/tensorflow/tensorflow/compiler/xla/service/
Dshape_inference.h134 int64 split_dimension,
Dhlo_verifier.cc230 if (all_to_all->split_dimension()) { in HandleAllToAll()
253 if (all_to_all->split_dimension()) { in HandleAllToAll()
257 hlo->operand(0)->shape(), *all_to_all->split_dimension(), in HandleAllToAll()
258 *all_to_all->split_dimension(), split_count)); in HandleAllToAll()
Dshape_inference.cc2018 const Shape& shape, int64 split_dimension, int64 concat_dimension, in InferAllToAllShape() argument
2021 if (split_dimension >= shape.rank() || split_dimension < 0) { in InferAllToAllShape()
2024 split_dimension, ShapeUtil::HumanString(shape)); in InferAllToAllShape()
2031 if (shape.dimensions(split_dimension) % split_count != 0) { in InferAllToAllShape()
2035 shape.dimensions(split_dimension), split_count); in InferAllToAllShape()
2039 new_dimensions[split_dimension] /= split_count; in InferAllToAllShape()
Dhlo_instructions.cc612 const absl::optional<int64>& split_dimension) in HloAllToAllInstruction() argument
615 split_dimension_(split_dimension) {} in HloAllToAllInstruction()
622 shape, new_operands, replica_groups(), channel_id(), split_dimension()); in CloneWithNewOperandsImpl()
649 split_dimension_ == casted_other.split_dimension(); in IdenticalSlowPath()
Dhlo_instruction.cc412 absl::optional<int64> split_dimension; in CreateFromProto() local
419 split_dimension = proto.dimensions(0); in CreateFromProto()
426 /*channel_id=*/channel_id, split_dimension); in CreateFromProto()
924 const absl::optional<int64>& split_dimension) { in CreateAllToAll() argument
926 shape, operands, replica_groups, channel_id, split_dimension); in CreateAllToAll()
Dhlo_instructions.h386 const absl::optional<int64>& split_dimension);
395 absl::optional<int64> split_dimension() const { return split_dimension_; } in split_dimension() function
Dhlo_parser.cc891 optional<int64> split_dimension; in ParseInstructionRhs() local
893 split_dimension = dimensions->at(0); in ParseInstructionRhs()
896 shape, operands, replica_groups, channel_id, split_dimension)); in ParseInstructionRhs()
Dhlo_instruction.h645 const absl::optional<int64>& split_dimension = absl::nullopt);
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py1028 split_dimension, argument
1053 return ops.AllToAll(operand, split_dimension, concat_dimension, split_count,
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/
Dops.mlir19 split_dimension = 1 : i64,
32 split_dimension = 1 : i64,
45 split_dimension = 1 : i64,
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.cc2189 XlaOp XlaBuilder::AllToAll(XlaOp operand, int64 split_dimension, in AllToAll() argument
2203 ShapeInference::InferAllToAllShape(*operand_shape, split_dimension, in AllToAll()
2211 operand_shape->dimensions(split_dimension) / split_count; in AllToAll()
2215 /*stride=*/1, /*dimno=*/split_dimension)); in AllToAll()
3314 XlaOp AllToAll(const XlaOp operand, int64 split_dimension, in AllToAll() argument
3317 return operand.builder()->AllToAll(operand, split_dimension, concat_dimension, in AllToAll()
Dxla_builder.h520 XlaOp AllToAll(XlaOp operand, int64 split_dimension, int64 concat_dimension,
928 friend XlaOp AllToAll(XlaOp operand, int64 split_dimension,
1681 XlaOp AllToAll(XlaOp operand, int64 split_dimension, int64 concat_dimension,
/external/tensorflow/tensorflow/python/distribute/
Dtpu_strategy.py652 split_dimension=0,
/external/tensorflow/tensorflow/compiler/mlir/xla/ir/
Dhlo_ops.cc336 auto split_dim_size = type.getDimSize(op.split_dimension().getSExtValue()); in Verify()
Dhlo_ops.td541 I64Attr:$split_dimension,
Dhlo_ops_base.td697 - The dimension size of the operand on the split_dimension is divisible by
/external/tensorflow/tensorflow/compiler/xla/g3doc/
Doperation_semantics.md101 - The dimension size of the operand on the `split_dimension` is divisible by
105 <b> `AllToAll(operand, split_dimension, concat_dimension, split_count,
112 | `split_dimension` | `int64` | A value in the interval `[0, |
135 AllToAll(x, /*split_dimension=*/1, /*concat_dimension=*/0, /*split_count=*/4);
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.raw_ops.pbtxt85 …argspec: "args=[\'input\', \'group_assignment\', \'concat_dimension\', \'split_dimension\', \'spli…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.raw_ops.pbtxt85 …argspec: "args=[\'input\', \'group_assignment\', \'concat_dimension\', \'split_dimension\', \'spli…

12