Home
last modified time | relevance | path

Searched refs:dim_idx (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dtranspose_functor.h95 int dim_idx = 0; in ReduceTransposeDimensions() local
101 combined_dims[dim_idx] *= shape.dim_size(cur_head); in ReduceTransposeDimensions()
105 dim_idx++; in ReduceTransposeDimensions()
106 new_dim_position[cur_head] = dim_idx; in ReduceTransposeDimensions()
107 combined_dims[dim_idx] = shape.dim_size(cur_head); in ReduceTransposeDimensions()
111 new_perm->resize(dim_idx + 1); in ReduceTransposeDimensions()
112 new_dims->resize(dim_idx + 1); in ReduceTransposeDimensions()
113 dim_idx = 0; in ReduceTransposeDimensions()
117 (*new_perm)[dim_idx] = new_perm_idx; in ReduceTransposeDimensions()
118 (*new_dims)[dim_idx] = combined_dims[new_perm_idx]; in ReduceTransposeDimensions()
[all …]
Ddebug_ops.h635 int dim_idx = 4;
639 output_tensor->flat<Tout>()(dim_idx++) =
642 output_tensor->flat<Tout>()(dim_idx++) = 0.0;
839 int dim_idx = 4;
841 static_output[dim_idx++] = static_cast<Tout>(tensor.dim_size(i));
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dtree_reduction_rewriter.cc140 for (int64 dim_idx = 0; dim_idx < padded->shape().dimensions_size(); in RewriteReduction() local
141 dim_idx++) { in RewriteReduction()
142 if (dim_idx == reduced_input_dimension) { in RewriteReduction()
146 reshaped_dimensions.push_back(padded->shape().dimensions(dim_idx)); in RewriteReduction()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_batch_matmul_op.cc173 for (int dim_idx = 0; dim_idx < ndims_input; ++dim_idx) in ExpandInputDimsToOutputShape() local
174 reshaped_dims->at(dim_idx + dim_offset) = input_dims[dim_idx]; in ExpandInputDimsToOutputShape()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorContraction.h235 int dim_idx = 0;
249 m_dimensions[dim_idx] = eval_left_dims[i];
251 if (dim_idx != i) {
260 dim_idx++;
276 m_dimensions[dim_idx] = eval_right_dims[i];
284 dim_idx++;
/external/tensorflow/tensorflow/tools/graph_transforms/
Dsparsify_gather.cc400 Tensor dim_idx(DT_INT32, TensorShape({})); in SparsifyGatherInternal() local
401 dim_idx.flat<int32>()(0) = -1; in SparsifyGatherInternal()
406 SetNodeAttr("value", dim_idx, &dim_idx_node); in SparsifyGatherInternal()