Home
last modified time | relevance | path

Searched refs:group_assignment (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/python/tpu/
Dtpu_optimizer.py40 group_assignment=None): argument
70 self._group_assignment = group_assignment
72 def _verify_and_get_subgroup_size(self, group_assignment, num_shards): argument
86 if not group_assignment:
88 if not (isinstance(group_assignment, list) and
89 all(isinstance(i, list) for i in group_assignment)):
91 group_assignment))
94 for g in group_assignment:
101 num_shards, group_assignment))
103 subgroup_size_list = [len(group) for group in group_assignment]
/external/tensorflow/tensorflow/python/tpu/ops/
Dtpu_ops.py41 group_assignment = [list(range(num_shards))]
42 return group_assignment
49 group_assignment=None, argument
67 if group_assignment is None:
68 group_assignment = _create_default_group_assignment()
71 group_assignment,
94 def cross_replica_sum(x, group_assignment=None, name=None): argument
107 if group_assignment is None:
108 group_assignment = _create_default_group_assignment()
110 return gen_tpu_ops.cross_replica_sum(x, group_assignment, name=name)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AllToAll.pbtxt11 name: "group_assignment"
14 [num_groups, num_replicas_per_group]. `group_assignment[i]` represents the
46 size(group_assignment.get_shape()[1])
52 `split_dimension` and send to the other replicas given group_assignment. After
60 group_assignment=`[[0, 1]]`
Dapi_def_CrossReplicaSum.pbtxt11 name: "group_assignment"
14 [num_groups, num_replicas_per_group]. `group_assignment[i]` represents the
35 Passing group_assignment=`[[0,2,4,6],[1,3,5,7]]` sets `A, C, E, G` as group 0,
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DCrossReplicaSum.pbtxt8 name: "group_assignment"
33 name: "group_assignment"
60 name: "group_assignment"
DAllToAll.pbtxt8 name: "group_assignment"
45 name: "group_assignment"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DCrossReplicaSum.pbtxt8 name: "group_assignment"
33 name: "group_assignment"
DAllToAll.pbtxt8 name: "group_assignment"
45 name: "group_assignment"
/external/tensorflow/tensorflow/core/tpu/kernels/
Dcross_replica_ops.cc29 const std::vector<int64>& group_assignment, in Convert() argument
31 VLOG(1) << "group_assignment size: " << group_assignment.size(); in Convert()
43 int64 replica = group_assignment[num_replica_per_group * g + i]; in Convert()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.tpu.-cross-shard-optimizer.pbtxt21 …argspec: "args=[\'self\', \'opt\', \'reduction\', \'name\', \'group_assignment\'], varargs=None, k…
Dtensorflow.tpu.pbtxt33 …argspec: "args=[\'x\', \'group_assignment\', \'name\'], varargs=None, keywords=None, defaults=[\'N…
Dtensorflow.raw_ops.pbtxt85 …argspec: "args=[\'input\', \'group_assignment\', \'concat_dimension\', \'split_dimension\', \'spli…
941 …argspec: "args=[\'input\', \'group_assignment\', \'name\'], varargs=None, keywords=None, defaults=…
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_patterns.td289 def : Pat<(TF_CrossReplicaSumOp $input, (ConstantLikeMatcher ElementsAttr:$group_assignment)),
291 (CastElementsToI64Elements $group_assignment))>;
297 …lToAllOp AnyRankedTensor:$input, (ConstantLikeMatcher ElementsAttr:$group_assignment), I64Attr:$co…
298 …$split_dimension, $concat_dimension, $split_count, (CastElementsToI64Elements $group_assignment))>;
Dlegalize_tf.cc5263 DenseIntElementsAttr group_assignment; in matchAndRewrite() local
5264 if (!matchPattern(op.group_assignment(), m_Constant(&group_assignment))) in matchAndRewrite()
5267 hlo::ConvertElementsAttr(group_assignment, rewriter.getIntegerType(64)) in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dhlo_ops_base.td1053 Passing group_assignment=`[[0,2,4,6],[1,3,5,7]]` sets `A, C, E, G` as group 0,
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops.td246 TF_Int32Tensor:$group_assignment,
Dtf_generated_ops.td235 `split_dimension` and send to the other replicas given group_assignment. After
243 group_assignment=`[[0, 1]]`
255 [num_groups, num_replicas_per_group]. `group_assignment[i]` represents the
256 replica ids in the ith subgroup.}]>:$group_assignment,
2494 Passing group_assignment=`[[0,2,4,6],[1,3,5,7]]` sets `A, C, E, G` as group 0,
2502 [num_groups, num_replicas_per_group]. `group_assignment[i]` represents the
2503 replica ids in the ith subgroup.}]>:$group_assignment
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.raw_ops.pbtxt85 …argspec: "args=[\'input\', \'group_assignment\', \'concat_dimension\', \'split_dimension\', \'spli…
941 …argspec: "args=[\'input\', \'group_assignment\', \'name\'], varargs=None, keywords=None, defaults=…
/external/tensorflow/tensorflow/go/op/
Dwrappers.go45556 func CrossReplicaSum(scope *Scope, input tf.Output, group_assignment tf.Output) (output tf.Output) {
45563 input, group_assignment,
51322 func AllToAll(scope *Scope, input tf.Output, group_assignment tf.Output, concat_dimension int64, sp…
51330 input, group_assignment,
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/
Dlegalize-tf.mlir4881 %group_assignment = "tf.Const" () {
4884 …%result = "tf.AllToAll"(%input, %group_assignment) {T = f32, concat_dimension = 1 : i64, split_cou…
/external/tensorflow/tensorflow/core/ops/compat/
Dops_history.v2.pbtxt1556 name: "group_assignment"
1593 name: "group_assignment"
16581 name: "group_assignment"
16606 name: "group_assignment"
/external/tensorflow/tensorflow/core/ops/
Dops.pbtxt668 name: "group_assignment"
9495 name: "group_assignment"