MCPcopy Create free account
hub / github.com/XiaoMi/mace / PaddingTypeToString

Function PaddingTypeToString

mace/utils/statistics.cc:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41std::string PaddingTypeToString(int padding_type) {
42 std::stringstream stream;
43 switch (padding_type) {
44 case 0: stream << "VALID"; break;
45 case 1: stream << "SAME"; break;
46 case 2: stream << "FULL"; break;
47 default: stream << padding_type; break;
48 }
49
50 return stream.str();
51}
52
53std::string ShapeToString(
54 const std::vector<std::vector<int64_t>> &output_shape) {

Callers 1

StatByMetricMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected