Home
last modified time | relevance | path

Searched refs:num_dimensions (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dcudnn_conv_runner.cc139 const int num_dimensions = window.dimensions_size(); in RunCudnnConvImpl() local
140 CHECK_LE(num_dimensions, 3); in RunCudnnConvImpl()
141 CHECK_GE(num_dimensions, 1); in RunCudnnConvImpl()
146 const int effective_num_dimensions = std::max(2, num_dimensions); in RunCudnnConvImpl()
156 CHECK_EQ(num_dimensions, dnums.input_spatial_dimensions_size()); in RunCudnnConvImpl()
157 CHECK_EQ(num_dimensions, dnums.kernel_spatial_dimensions_size()); in RunCudnnConvImpl()
158 CHECK_EQ(num_dimensions, dnums.output_spatial_dimensions_size()); in RunCudnnConvImpl()
186 for (int dim = 0; dim < num_dimensions; ++dim) { in RunCudnnConvImpl()
199 for (int dim = 0; dim < num_dimensions; ++dim) { in RunCudnnConvImpl()
208 for (int dim = 0; dim < num_dimensions; ++dim) { in RunCudnnConvImpl()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dreshape.cc80 int num_dimensions = params->num_dimensions; in GetOutputShapeFromParam() local
81 if (num_dimensions == 1 && params->shape[0] == 0) { in GetOutputShapeFromParam()
85 num_dimensions = 0; in GetOutputShapeFromParam()
87 TfLiteIntArray* output_shape = TfLiteIntArrayCreate(num_dimensions); in GetOutputShapeFromParam()
88 for (int i = 0; i < num_dimensions; ++i) { in GetOutputShapeFromParam()
Dtile.cc36 int num_dimensions) { in MultiplyShapeDims() argument
39 TfLiteIntArray* output_shape = TfLiteIntArrayCreate(num_dimensions); in MultiplyShapeDims()
40 for (int i = 0; i < num_dimensions; ++i) { in MultiplyShapeDims()
51 const int num_dimensions = NumDimensions(input); in ResizeOutput() local
53 TF_LITE_ENSURE_EQ(context, num_dimensions, num_multipliers); in ResizeOutput()
59 num_dimensions)); in ResizeOutput()
64 num_dimensions)); in ResizeOutput()
Dtopk_v2.cc41 const int num_dimensions = NumDimensions(input); in ResizeOutput() local
46 TF_LITE_ENSURE_MSG(context, k <= input->dims->data[num_dimensions - 1], in ResizeOutput()
49 TfLiteIntArray* output_indexes_shape = TfLiteIntArrayCreate(num_dimensions); in ResizeOutput()
50 TfLiteIntArray* output_values_shape = TfLiteIntArrayCreate(num_dimensions); in ResizeOutput()
51 for (int i = 0; i < num_dimensions - 1; ++i) { in ResizeOutput()
55 output_indexes_shape->data[num_dimensions - 1] = k; in ResizeOutput()
56 output_values_shape->data[num_dimensions - 1] = k; in ResizeOutput()
Dgather.cc80 const int num_dimensions = in Prepare() local
82 TfLiteIntArray* output_shape = TfLiteIntArrayCreate(num_dimensions); in Prepare()
/external/tensorflow/tensorflow/python/ops/
Drandom_grad.py28 def add_leading_unit_dimensions(x, num_dimensions): argument
30 [array_ops.ones([num_dimensions], dtype=dtypes.int32),
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_grad_test.py52 num_dimensions = array_ops.placeholder(dtypes.int32)
53 ret = random_grad.add_leading_unit_dimensions(x, num_dimensions)
55 ret_val = sess.run(ret, {x: np.ones([2, 2]), num_dimensions: 2})
/external/tensorflow/tensorflow/compiler/xla/
Darray.h413 int64 num_dimensions() const { return sizes_.size(); }
448 CHECK_EQ(starts.size(), num_dimensions());
449 CHECK_EQ(limits.size(), num_dimensions());
473 CHECK_EQ(from.num_dimensions(), num_dimensions());
Darray_test.cc27 EXPECT_EQ(uninit.num_dimensions(), 2); in TEST()
Dliteral.h1031 CHECK_EQ(shape().rank(), values.num_dimensions()); in PopulateFromArray()
1032 for (int dim = 0; dim < values.num_dimensions(); ++dim) { in PopulateFromArray()
Dliteral_util.h449 values, LayoutUtil::GetDefaultLayoutForRank(values.num_dimensions())); in CreateFromArray()
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions.cc39 int num_dimensions = flat_vector->Length(); in FlatBufferIntVectorToArray() local
40 if (num_dimensions > max_size_of_buffer / sizeof(int)) { in FlatBufferIntVectorToArray()
46 for (int i = 0; i < num_dimensions; ++i) { in FlatBufferIntVectorToArray()
463 params->num_dimensions = new_shape->Length(); in ParseOpData()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_sharding.cc171 CHECK_EQ(shape.dimensions_size(), tile_assignment_.num_dimensions()); in TileOffsetForDevice()
190 CHECK_EQ(shape.dimensions_size(), tile_assignment_.num_dimensions()); in TileLimitForDevice()
343 if (shape.rank() != tile_assignment_.num_dimensions()) { in ValidateNonTuple()
/external/tensorflow/tensorflow/lite/c/
Dbuiltin_op_data.h251 int num_dimensions; member
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcurand_10_0.inc77 curandSetQuasiRandomGeneratorDimensions(curandGenerator_t generator, unsigned int num_dimensions) {
81 return func_ptr(generator, num_dimensions);