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

Method BatchDescriptor

tensorflow/stream_executor/dnn.cc:310–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308// -- BatchDescriptor
309
310BatchDescriptor::BatchDescriptor(int ndims)
311 : value_max_(0.0),
312 value_min_(0.0),
313 quantized_activation_mode_(QuantizedActivationMode::k8Bit) {
314 tensor_.mutable_dimensions()->Resize(ndims + 2, 0);
315 set_layout(DataLayout::kYXDepthBatch);
316}
317
318BatchDescriptor::BatchDescriptor() : BatchDescriptor(/*ndims=*/2) {}
319

Callers

nothing calls this directly

Calls 2

mutable_dimensionsMethod · 0.80
ResizeMethod · 0.45

Tested by

no test coverage detected