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

Method DepthConcatenateOutputDescriptor

tensorflow/stream_executor/dnn.cc:429–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429BatchDescriptor BatchDescriptor::DepthConcatenateOutputDescriptor(
430 port::ArraySlice<dnn::BatchDescriptor> inputs) {
431 if (inputs.empty()) {
432 return BatchDescriptor();
433 }
434 int feature_map_count = 0;
435 for (const auto& dimensions : inputs) {
436 feature_map_count += dimensions.feature_map_count();
437 }
438 BatchDescriptor output = inputs[0];
439 output.set_feature_map_count(feature_map_count);
440 return output;
441}
442
443TensorDescriptorProto BatchDescriptor::ToProto(DataType data_type) const {
444 CHECK_EQ(0.0, value_max_);

Callers

nothing calls this directly

Calls 3

feature_map_countMethod · 0.80
BatchDescriptorClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected