Searched refs:DimIndex (Results 1 – 9 of 9) sorted by relevance
/external/tensorflow/tensorflow/stream_executor/ |
D | dnn.h | 54 enum class DimIndex : int { enum 61 inline int64 GetDim(absl::Span<const int64> data, DimIndex dim) { in GetDim() 65 inline void SetDim(absl::Span<int64> data, DimIndex dim, int64 value) { in SetDim() 69 inline void SetDim(std::vector<int64>* data, DimIndex dim, int64 value) { in SetDim() 260 int64 height() const { return GetDim(spatial_size(), DimIndex::Y); } 261 int64 width() const { return GetDim(spatial_size(), DimIndex::X); } 262 int64 spatial_dim(DimIndex dim) const { return GetDim(spatial_size(), dim); } 288 SetDim(spatial_size(), DimIndex::Y, value); 292 SetDim(spatial_size(), DimIndex::X, value); 295 BatchDescriptor& set_spatial_dim(DimIndex dim, int64 value) { [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | conv_ops_3d.cc | 39 using stream_executor::dnn::DimIndex; 354 .set_spatial_dim(DimIndex::X, in_cols) in launch() 355 .set_spatial_dim(DimIndex::Y, in_rows) in launch() 356 .set_spatial_dim(DimIndex::Z, in_planes) in launch() 360 .set_spatial_dim(DimIndex::X, out_cols) in launch() 361 .set_spatial_dim(DimIndex::Y, out_rows) in launch() 362 .set_spatial_dim(DimIndex::Z, out_planes) in launch() 366 filter_desc.set_spatial_dim(DimIndex::X, filter_cols) in launch() 367 .set_spatial_dim(DimIndex::Y, filter_rows) in launch() 368 .set_spatial_dim(DimIndex::Z, filter_planes) in launch() [all …]
|
D | conv_grad_ops_3d.cc | 44 using stream_executor::dnn::DimIndex; 1256 .set_spatial_dim(DimIndex::X, compatible_input_shape.dim_size(4)) in Compute() 1257 .set_spatial_dim(DimIndex::Y, compatible_input_shape.dim_size(3)) in Compute() 1258 .set_spatial_dim(DimIndex::Z, compatible_input_shape.dim_size(2)) in Compute() 1263 .set_spatial_dim(DimIndex::X, dims.output_size(2)) in Compute() 1264 .set_spatial_dim(DimIndex::Y, dims.output_size(1)) in Compute() 1265 .set_spatial_dim(DimIndex::Z, dims.output_size(0)) in Compute() 1269 filter_desc.set_spatial_dim(DimIndex::X, dims.filter_size(2)) in Compute() 1270 .set_spatial_dim(DimIndex::Y, dims.filter_size(1)) in Compute() 1271 .set_spatial_dim(DimIndex::Z, dims.filter_size(0)) in Compute() [all …]
|
D | cudnn_pooling_gpu.cc | 82 const auto dim_i = static_cast<se::dnn::DimIndex>(i); in Compute() 203 const auto dim_i = static_cast<se::dnn::DimIndex>(i); in Compute()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | cudnn_conv_runner.cc | 37 using se::dnn::DimIndex; 189 static_cast<DimIndex>(effective_num_dimensions - dim - 1), in RunCudnnConvImpl() 201 static_cast<DimIndex>(effective_num_dimensions - dim - 1), in RunCudnnConvImpl() 211 static_cast<DimIndex>(effective_num_dimensions - dim - 1), in RunCudnnConvImpl() 214 static_cast<DimIndex>(effective_num_dimensions - dim - 1), in RunCudnnConvImpl() 225 static_cast<DimIndex>(effective_num_dimensions - dim - 1), in RunCudnnConvImpl() 231 input_descriptor.set_spatial_dim(static_cast<DimIndex>(0), 1); in RunCudnnConvImpl() 232 output_descriptor.set_spatial_dim(static_cast<DimIndex>(0), 1); in RunCudnnConvImpl() 233 filter_descriptor.set_spatial_dim(static_cast<DimIndex>(0), 1); in RunCudnnConvImpl() 234 convolution_descriptor.set_zero_padding(static_cast<DimIndex>(0), 0) in RunCudnnConvImpl() [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorReduction.h | 129 template <int DimIndex, typename Self, typename Op> 132 EIGEN_STATIC_ASSERT((DimIndex > 0), YOU_MADE_A_PROGRAMMING_MISTAKE); 133 for (int j = 0; j < self.m_reducedDims[DimIndex]; ++j) { 134 const typename Self::Index input = firstIndex + j * self.m_reducedStrides[DimIndex]; 135 GenericDimReducer<DimIndex-1, Self, Op>::reduce(self, input, reducer, accum); 183 template <int DimIndex, typename Self, typename Op, bool vectorizable = (Self::InputPacketAccess & … 190 template <int DimIndex, typename Self, typename Op> 191 struct InnerMostDimPreserver<DimIndex, Self, Op, true> { 193 EIGEN_STATIC_ASSERT((DimIndex > 0), YOU_MADE_A_PROGRAMMING_MISTAKE); 194 for (typename Self::Index j = 0; j < self.m_reducedDims[DimIndex]; ++j) { [all …]
|
D | TensorConvolution.h | 490 …EIGEN_DEVICE_FUNC void convolve(Index firstIndex, Index firstKernel, int DimIndex, CoeffReturnType… 491 for (int j = 0; j < m_kernelImpl.dimensions()[DimIndex]; ++j) { 492 const Index input = firstIndex + j * m_indexStride[DimIndex]; 493 const Index kernel = firstKernel + j * m_kernelStride[DimIndex]; 494 if (DimIndex > 0) { 495 convolve(input, kernel, DimIndex-1, accum); 503 …EIGEN_DEVICE_FUNC void convolvePacket(Index firstIndex, Index firstKernel, int DimIndex, Packet& a… 504 for (int j = 0; j < m_kernelImpl.dimensions()[DimIndex]; ++j) { 505 const Index input = firstIndex + j * m_indexStride[DimIndex]; 506 const Index kernel = firstKernel + j * m_kernelStride[DimIndex]; [all …]
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_dnn.cc | 4108 output_batch_descriptor->set_spatial_dim(static_cast<dnn::DimIndex>(i), in DeriveOutputBatchDescriptor()
|
/external/tensorflow/tensorflow/stream_executor/rocm/ |
D | rocm_dnn.cc | 4012 output_batch_descriptor->set_spatial_dim(static_cast<dnn::DimIndex>(i), in DeriveOutputBatchDescriptor()
|