Home
last modified time | relevance | path

Searched refs:last_dim (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dnth_element_op.cc95 const int last_dim = input_tensor.dim_size(input_tensor.dims() - 1); in operator ()() local
98 auto SubNthElement = [&, input, output, last_dim, n](int start, int limit) { in operator ()()
100 std::vector<T> buf(last_dim); in operator ()()
104 const T* input_start = input + b * last_dim; in operator ()()
105 const T* input_end = input + (b + 1) * last_dim; in operator ()()
120 20 * last_dim, SubNthElement); in operator ()()
Dquantized_bias_add_op.cc52 const auto last_dim = input.shape().dims() - 1; in Compute() local
54 context, bias.shape().dim_size(0) == input.shape().dim_size(last_dim), in Compute()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dsorting.cc28 int last_dim = input_shape.dimensions_size() - 1; in TopK() local
32 XlaOp iota_s32 = Iota(builder, iota_shape, last_dim); in TopK()
40 last_dim, /*is_stable=*/true); in TopK()
43 limit_indices[last_dim] = k; in TopK()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtopk_op.cc42 int last_dim = input_shape.dims() - 1; in Compile() local
43 int last_dim_size = input_shape.dim_size(last_dim); in Compile()
Ddiag_op.cc178 int last_dim = dims.size() - 1; in Compile() local
179 int64 last_dim_size = input_shape.dim_size(last_dim); in Compile()
/external/tensorflow/tensorflow/core/ops/
Dnn_ops.cc113 DimensionHandle last_dim = c->Dim(input, 3); in __anon3e672dd80302() local
117 TF_RETURN_IF_ERROR(c->Merge(last_dim, c->Dim(vec, 0), &last_dim)); in __anon3e672dd80302()
121 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 3, last_dim, &out)); in __anon3e672dd80302()
147 DimensionHandle last_dim = c->Dim(input, 3); in __anon3e672dd80402() local
151 TF_RETURN_IF_ERROR(c->Merge(last_dim, c->Dim(vec, 0), &last_dim)); in __anon3e672dd80402()
155 TF_RETURN_IF_ERROR(c->ReplaceDim(input, 3, last_dim, &dx)); in __anon3e672dd80402()
158 ShapeHandle vector_shape = c->Vector(last_dim); in __anon3e672dd80402()
1216 DimensionHandle last_dim = c->Dim(input, -1); in TopKShapeFn() local
1217 if (c->ValueKnown(last_dim) && c->ValueKnown(k_dim) && in TopKShapeFn()
1218 c->Value(last_dim) < c->Value(k_dim)) { in TopKShapeFn()
[all …]
Dimage_ops.cc102 DimensionHandle last_dim; in ColorspaceShapeFn() local
103 TF_RETURN_IF_ERROR(c->WithValue(c->Dim(input, -1), 3, &last_dim)); in ColorspaceShapeFn()
105 TF_RETURN_IF_ERROR(c->ReplaceDim(input, -1, last_dim, &out)); in ColorspaceShapeFn()
Darray_ops.cc2658 DimensionHandle last_dim = c->Dim(new_shape, -1); in __anon7c94107b3b02() local
2659 if (!c->ValueKnown(last_dim) || c->Value(last_dim) == divisor_val) { in __anon7c94107b3b02()
2663 c->Value(last_dim), " does not match ", in __anon7c94107b3b02()
3124 ShapeHandle last_dim = c->Vector(c->Dim(inputs, -1)); in __anon7c94107b4a02() local
3128 TF_RETURN_IF_ERROR(c->Merge(min_max, last_dim, &min_max)); in __anon7c94107b4a02()
/external/tensorflow/tensorflow/python/keras/layers/
Dcore.py988 last_dim = tensor_shape.dimension_value(input_shape[-1])
990 axes={-1: last_dim})
993 shape=[last_dim, self.units],
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dlayers_test.py3978 for last_dim in [1, 3]:
3980 self._fully_connected_basic_use(self.input_3_dim, last_dim,
3981 [2, 4, last_dim])
4172 def _unknown_dim_invalid_input(self, last_dim): argument
4173 x = array_ops.placeholder(dtypes.float32, shape=[3, last_dim])
4177 self._unknown_dim_invalid_input(last_dim=3)
4182 self._unknown_dim_invalid_input(last_dim=None)