Home
last modified time | relevance | path

Searched refs:GetTensorDimIndex (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dmkl_util.h499 data_.map_[GetTensorDimIndex<3>(data_format, '0')] = in SetTfDimOrder()
501 data_.map_[GetTensorDimIndex<3>(data_format, '1')] = in SetTfDimOrder()
503 data_.map_[GetTensorDimIndex<3>(data_format, '2')] = in SetTfDimOrder()
505 data_.map_[GetTensorDimIndex<3>(data_format, 'C')] = in SetTfDimOrder()
507 data_.map_[GetTensorDimIndex<3>(data_format, 'N')] = in SetTfDimOrder()
512 data_.map_[GetTensorDimIndex<2>(data_format, 'W')] = MklDnnDims::Dim_W; in SetTfDimOrder()
513 data_.map_[GetTensorDimIndex<2>(data_format, 'H')] = MklDnnDims::Dim_H; in SetTfDimOrder()
514 data_.map_[GetTensorDimIndex<2>(data_format, 'C')] = MklDnnDims::Dim_C; in SetTfDimOrder()
515 data_.map_[GetTensorDimIndex<2>(data_format, 'N')] = MklDnnDims::Dim_N; in SetTfDimOrder()
557 return (IsMklBatchDim(GetTensorDimIndex<2>(data_format, 'N')) && in IsTensorInNCHWFormat()
[all …]
Dtensor_format.h313 inline int32 GetTensorDimIndex(TensorFormat format, char dimension) { in GetTensorDimIndex() function
418 inline int32 GetTensorDimIndex(TensorFormat format, char dimension) { in GetTensorDimIndex() function
419 return GetTensorDimIndex<2>(format, dimension); in GetTensorDimIndex()
422 inline int32 GetTensorDimIndex(TensorFormat format, char dimension, in GetTensorDimIndex() function
425 ? GetTensorDimIndex<3>(format, dimension) in GetTensorDimIndex()
426 : GetTensorDimIndex<2>(format, dimension); in GetTensorDimIndex()
439 GetTensorDimIndex(tensor_format, dimension, dimension_attributes.size()); in GetTensorDim()
502 GetTensorDimIndex(tensor_format, dimension, explicit_paddings.size() / 2); in GetExplicitPaddingForDim()
Dtensor_format_test.cc179 EXPECT_EQ(GetTensorDimIndex<num_spatial_dims>(format, 'N'), tdm.n()); in RunDimensionIndexesTest()
181 EXPECT_EQ(GetTensorDimIndex<num_spatial_dims>(format, 'C'), tdm.c()); in RunDimensionIndexesTest()
184 EXPECT_EQ(GetTensorDimIndex<num_spatial_dims>(format, '0' + i), in RunDimensionIndexesTest()
/external/tensorflow/tensorflow/core/kernels/
Ddepthtospace_op.cc83 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'N')); in Compute()
85 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'H')); in Compute()
87 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'W')); in Compute()
89 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'C')) * in Compute()
Dspacetodepth_op.cc98 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'N')); in Compute()
100 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'H')); in Compute()
102 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'W')); in Compute()
104 input.dim_size(GetTensorDimIndex<kNumSpatialDims>(data_format_, 'C')) * in Compute()
Dconv_grad_filter_ops.cc115 dilations[GetTensorDimIndex(data_format, 'H')] = row_dilation; in operator ()()
116 dilations[GetTensorDimIndex(data_format, 'W')] = col_dilation; in operator ()()
119 strides[GetTensorDimIndex(data_format, 'H')] = row_stride; in operator ()()
120 strides[GetTensorDimIndex(data_format, 'W')] = col_stride; in operator ()()
661 dilations[GetTensorDimIndex(data_format, 'H')] = row_dilation; in operator ()()
662 dilations[GetTensorDimIndex(data_format, 'W')] = col_dilation; in operator ()()
665 strides[GetTensorDimIndex(data_format, 'H')] = row_stride; in operator ()()
666 strides[GetTensorDimIndex(data_format, 'W')] = col_stride; in operator ()()
Dconv_2d.h343 padding[GetTensorDimIndex<NDIMS - 2>(format, 'N')] = {0, 0};
345 padding[GetTensorDimIndex<NDIMS - 2>(format, '0' + i)] = {
348 padding[GetTensorDimIndex<NDIMS - 2>(format, 'C')] = {0, 0};
Dconv_grad_input_ops.cc78 auto input_h = GetTensorDimIndex(data_format, 'H'); in operator ()()
79 auto input_w = GetTensorDimIndex(data_format, 'W'); in operator ()()
Dconv_grad_input_ops.h120 auto input_h = GetTensorDimIndex(data_format, 'H'); in operator()
121 auto input_w = GetTensorDimIndex(data_format, 'W'); in operator()
/external/tensorflow/tensorflow/core/framework/
Dcommon_shape_fns.cc770 return c->Dim(input_shape, GetTensorDimIndex<3>(FORMAT_NCHW, dimension)); in Conv3DShape()
1094 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'N')); in AvgPoolShape()
1096 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'H')); in AvgPoolShape()
1098 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'W')); in AvgPoolShape()
1100 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'C')); in AvgPoolShape()
1537 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'N')); in MaxPoolShapeImpl()
1539 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'H')); in MaxPoolShapeImpl()
1541 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'W')); in MaxPoolShapeImpl()
1543 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'C')); in MaxPoolShapeImpl()
1676 input_shape, GetTensorDimIndex<num_spatial_dims>(data_format, 'N')); in MaxPoolV2Shape()
[all …]
/external/tensorflow/tensorflow/core/ops/
Darray_ops.cc2490 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'N')); in __anon42d741193702()
2492 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'H')); in __anon42d741193702()
2494 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'W')); in __anon42d741193702()
2496 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'C')); in __anon42d741193702()
2545 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'N')); in __anon42d741193802()
2547 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'H')); in __anon42d741193802()
2549 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'W')); in __anon42d741193802()
2551 c->Dim(input, GetTensorDimIndex<num_spatial_dims>(data_format, 'C')); in __anon42d741193802()