MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / printShapes

Function printShapes

samples/common/sampleOptions.cpp:498–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496
497template <typename T>
498void printShapes(std::ostream& os, const char* phase, const T& shapes)
499{
500 if (shapes.empty())
501 {
502 os << "Input " << phase << " shapes: model" << std::endl;
503 }
504 else
505 {
506 for (const auto& s : shapes)
507 {
508 os << "Input " << phase << " shape: " << s.first << "=" << s.second << std::endl;
509 }
510 }
511}
512
513std::ostream& printBatch(std::ostream& os, int32_t maxBatch)
514{

Callers 1

sampleOptions.cppFile · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected