/external/tensorflow/tensorflow/core/util/ |
D | tensor_format.h | 42 FORMAT_NCHW = 1, enumerator 119 case FORMAT_NCHW: in GetTensorSpatialDims() 148 case FORMAT_NCHW: in GetTensorDimsFromSpatialDims() 176 case FORMAT_NCHW: in GetTensorBatchDimIndex() 201 case FORMAT_NCHW: in GetTensorFeatureDimIndex() 235 case FORMAT_NCHW: in GetTensorSpatialDimIndex() 328 } else if (format == FORMAT_NCHW || format == FORMAT_NCHW_VECT_C) { in GetTensorDimIndex()
|
D | tensor_format.cc | 44 case FORMAT_NCHW: in ToString() 82 *format = FORMAT_NCHW; in FormatFromString()
|
D | tensor_format_test.cc | 29 EnumStringPair(FORMAT_NHWC), EnumStringPair(FORMAT_NCHW), 119 (format == FORMAT_NCHW || in GetTensorDimMap()
|
D | mkl_util.h | 163 FORMAT_NCHW = 1, enumerator 200 } else if (format == MklTensorFormat::FORMAT_NCHW) { 556 TensorFormat data_format = FORMAT_NCHW; in IsTensorInNCHWFormat() 1011 if (format == MklTensorFormat::FORMAT_NCHW) return memory::format_tag::nchw; in MklTensorFormatToMklDnnDataFormat() 1026 if (format == FORMAT_NCHW) return MklTensorFormat::FORMAT_NCDHW; in TFDataFormatToMklDnn3DDataFormat() 1038 if (format == FORMAT_NCHW) return MklTensorFormat::FORMAT_NCHW; in TFDataFormatToMklDnnDataFormat() 1052 if (format == MklTensorFormat::FORMAT_NCHW || in MklDnnDataFormatToTFDataFormat() 1054 return FORMAT_NCHW; in MklDnnDataFormatToTFDataFormat()
|
D | mkl_types.h | 94 #define MKL_TENSOR_FORMAT_NCHW MklTensorFormat::FORMAT_NCHW
|
/external/tensorflow/tensorflow/core/kernels/ |
D | spacetodepth_op_gpu.cu.cc | 174 struct SpaceToDepthOpFunctor<GPUDevice, T, FORMAT_NCHW> { 239 template struct functor::SpaceToDepthOpFunctor<GPUDevice, float, FORMAT_NCHW>; 244 FORMAT_NCHW>; 249 template struct functor::SpaceToDepthOpFunctor<GPUDevice, uint8, FORMAT_NCHW>; 253 template struct functor::SpaceToDepthOpFunctor<GPUDevice, int32, FORMAT_NCHW>;
|
D | depthtospace_op.cc | 120 functor::DepthToSpaceOpFunctor<Device, int32, FORMAT_NCHW> functor; in Compute() 124 } else if (data_format_ == FORMAT_NCHW) { in Compute() 125 functor::DepthToSpaceOpFunctor<Device, T, FORMAT_NCHW> functor; in Compute() 178 struct DepthToSpaceOpFunctor<CPUDevice, T, FORMAT_NCHW> {
|
D | spacetodepth_op.cc | 135 functor::SpaceToDepthOpFunctor<Device, int32, FORMAT_NCHW> functor; in Compute() 138 } else if (data_format_ == FORMAT_NCHW) { in Compute() 140 functor::SpaceToDepthOpFunctor<Device, RT, FORMAT_NCHW> functor; in Compute() 194 struct SpaceToDepthOpFunctor<CPUDevice, T, FORMAT_NCHW> {
|
D | depthtospace_op_gpu.cu.cc | 177 struct DepthToSpaceOpFunctor<GPUDevice, T, FORMAT_NCHW> { 242 template struct functor::DepthToSpaceOpFunctor<GPUDevice, float, FORMAT_NCHW>; 247 FORMAT_NCHW>; 252 template struct functor::DepthToSpaceOpFunctor<GPUDevice, int32, FORMAT_NCHW>;
|
D | fused_batch_norm_op.cu.cc | 131 static_assert(tensor_format == FORMAT_NHWC || tensor_format == FORMAT_NCHW, 378 } else if (tensor_format == FORMAT_NCHW) { in operator ()() 383 LAUNCH(FORMAT_NCHW, false, Activation::kIdentity, c, inner); in operator ()() 385 LAUNCH(FORMAT_NCHW, false, Activation::kRelu, c, inner); in operator ()() 387 LAUNCH(FORMAT_NCHW, true, Activation::kIdentity, c, inner); in operator ()() 389 LAUNCH(FORMAT_NCHW, true, Activation::kRelu, c, inner); in operator ()()
|
D | cudnn_pooling_gpu.cc | 51 ShapeFromFormat(FORMAT_NCHW, tensor_in.shape(), in Compute() 65 ShapeFromFormat(FORMAT_NCHW, out_shape, data_format), in Compute() 152 ShapeFromFormat(FORMAT_NCHW, tensor_in_shape, data_format); in Compute() 163 ShapeFromFormat(FORMAT_NCHW, out_backprop.shape(), data_format); in Compute()
|
D | bias_op.cc | 59 } else if (data_format == FORMAT_NCHW) { in GetBiasValueDims() 112 if (data_format_ == FORMAT_NCHW) { in Compute() 133 if (data_format_ == FORMAT_NCHW) { in Compute() 259 if (data_format_ == FORMAT_NCHW) { in Compute() 454 data_format_ = FORMAT_NCHW; in BiasGradOp() 472 if (data_format_ == FORMAT_NCHW) { in ComputeWithReduceSum()
|
D | pooling_ops_common.cc | 247 ShapeFromFormat(FORMAT_NCHW, tensor_in.shape(), in Compute() 260 ShapeFromFormat(FORMAT_NCHW, tensor_out_shape, in Compute() 275 case FORMAT_NCHW: in Compute() 475 ShapeFromFormat(FORMAT_NCHW, tensor_in_shape, data_format); in Compute() 486 ShapeFromFormat(FORMAT_NCHW, out_backprop.shape(), data_format); in Compute() 521 transformed_input_data_format = FORMAT_NCHW; in Compute() 560 case FORMAT_NCHW: in Compute()
|
D | fused_batch_norm_op.cc | 121 if (tensor_format == FORMAT_NCHW) { in operator ()() 217 if (tensor_format == FORMAT_NCHW) { in operator ()() 259 if (tensor_format == FORMAT_NCHW) { in operator ()() 328 if (tensor_format == FORMAT_NCHW) { in operator ()() 351 if (tensor_format == FORMAT_NCHW) { in operator ()() 504 if (tensor_format == FORMAT_NCHW) { in operator ()() 798 : FORMAT_NCHW; in operator ()() 861 } else if (tensor_format == FORMAT_NHWC && compute_format == FORMAT_NCHW) { in operator ()() 974 if (tensor_format == FORMAT_NHWC && compute_format == FORMAT_NCHW) { in operator ()() 1014 : FORMAT_NCHW; in operator ()() [all …]
|
D | conv_ops_3d.cc | 349 : FORMAT_NCHW; in launch() 355 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in launch() 358 FORMAT_NCHW, in_batch, {{in_planes, in_rows, in_cols}}, in_depth); in launch() 432 compute_data_format == FORMAT_NCHW ? FORMAT_OIHW : FORMAT_OHWI; in launch() 460 ShapeFromFormat(FORMAT_NCHW, in_batch, in launch() 633 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in launch()
|
D | lrn_op.cc | 243 ShapeFromFormat(FORMAT_NCHW, in.shape(), FORMAT_NHWC), in launch() 253 ShapeFromFormat(FORMAT_NCHW, output->shape(), FORMAT_NHWC), in launch() 536 ShapeFromFormat(FORMAT_NCHW, in_grads.shape(), in launch() 546 ShapeFromFormat(FORMAT_NCHW, in_image.shape(), in launch() 556 ShapeFromFormat(FORMAT_NCHW, out_image.shape(), in launch() 567 ShapeFromFormat(FORMAT_NCHW, output->shape(), FORMAT_NHWC), in launch()
|
D | conv_grad_input_ops.cc | 230 : FORMAT_NCHW; in operator ()() 303 if (compute_data_format == FORMAT_NCHW) { in operator ()() 314 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()() 540 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()()
|
D | conv_ops_fused_impl.h | 442 params.data_format == FORMAT_NHWC || params.data_format == FORMAT_NCHW, 543 ShapeFromFormat(FORMAT_NCHW, in_batch, in_rows, in_cols, in_depths); 622 ShapeFromFormat(FORMAT_NCHW, out_batch, out_rows, 650 FORMAT_NCHW, // compute_data_format
|
D | conv_grad_ops_3d.cc | 1279 : FORMAT_NCHW; in Compute() 1334 compute_data_format == FORMAT_NCHW ? FORMAT_OIHW : FORMAT_OHWI; in Compute() 1354 if (data_format_ == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in Compute() 1555 if (data_format_ == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in Compute() 1773 : FORMAT_NCHW; in Compute() 1830 compute_data_format == FORMAT_NCHW ? FORMAT_OIHW : FORMAT_OHWI; in Compute() 1844 if (data_format_ == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in Compute() 1863 if (data_format_ == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in Compute()
|
D | conv_ops.cc | 752 : FORMAT_NCHW; in operator ()() 837 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()() 841 ShapeFromFormat(FORMAT_NCHW, in_batch, in_rows, in_cols, in_depths); in operator ()() 929 if (compute_data_format == FORMAT_NCHW) { in operator ()() 1124 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()()
|
D | depthwise_conv_op.cc | 312 (data_format_ == FORMAT_NCHW || in DepthwiseConv2dNativeOp() 319 use_cudnn_grouped_conv_ = dtype_ == DT_HALF && data_format_ == FORMAT_NCHW; in DepthwiseConv2dNativeOp()
|
D | conv_grad_filter_ops.cc | 835 : FORMAT_NCHW; in operator ()() 899 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()() 920 if (data_format == FORMAT_NHWC && compute_data_format == FORMAT_NCHW) { in operator ()() 1111 compute_data_format == FORMAT_NCHW ? FORMAT_OIHW : FORMAT_OHWI; in operator ()()
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | depthtospace_op.cc | 47 data_format = FORMAT_NCHW; in Compile() 53 OP_REQUIRES(ctx, data_format == FORMAT_NCHW || data_format == FORMAT_NHWC, in Compile() 171 DCHECK(data_format == FORMAT_NCHW && data_format_ == FORMAT_NCHW_VECT_C); in Compile()
|
D | spacetodepth_op.cc | 47 data_format = FORMAT_NCHW; in Compile() 53 OP_REQUIRES(ctx, data_format == FORMAT_NCHW || data_format == FORMAT_NHWC, in Compile() 175 DCHECK(data_format == FORMAT_NCHW && data_format_ == FORMAT_NCHW_VECT_C); in Compile()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | mkl_tfconversion_pass.cc | 184 data_format == ToString(FORMAT_NCHW))) { in InsertConversionNodeOnEdge() 270 data_format == ToString(FORMAT_NCHW))) { in InsertInputConversionNode()
|