MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / full_dims

Method full_dims

tensorflow/stream_executor/dnn.cc:320–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318BatchDescriptor::BatchDescriptor() : BatchDescriptor(/*ndims=*/2) {}
319
320std::vector<int64> BatchDescriptor::full_dims(const DataLayout& layout) const {
321 std::vector<int64> bdyx_dims(ndims() + 2);
322 bdyx_dims[0] = count();
323 bdyx_dims[1] = feature_map_count();
324 std::copy(spatial_size().begin(), spatial_size().end(),
325 bdyx_dims.begin() + 2);
326 return ReorderDims(bdyx_dims, DataLayout::kBatchDepthYX, layout);
327}
328
329std::vector<int64> BatchDescriptor::full_strides(
330 const DataLayout& layout) const {

Callers 6

DoPoolBackwardMethod · 0.80
CudnnTensorDescriptorMethod · 0.80
GetCudnnOperationGraphFunction · 0.80

Calls 5

countFunction · 0.85
ReorderDimsFunction · 0.85
copyFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected