| 427 | } |
| 428 | |
| 429 | BatchDescriptor 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 | |
| 443 | TensorDescriptorProto BatchDescriptor::ToProto(DataType data_type) const { |
| 444 | CHECK_EQ(0.0, value_max_); |
nothing calls this directly
no test coverage detected