MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / to_string

Method to_string

src/framework/core/module.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91std::string TensorShape::to_string() const {
92 std::ostringstream out;
93 out << "[";
94 for (size_t i = 0; i < rank; ++i) {
95 if (i > 0) {
96 out << ", ";
97 }
98 out << dims[i];
99 }
100 out << "]";
101 return out.str();
102}
103
104bool TensorValue::valid() const noexcept {
105 return tensor != nullptr && shape.rank > 0;

Callers 4

wrap_tensorFunction · 0.80
validate_shapeFunction · 0.80
require_same_shapeFunction · 0.80
run_caseFunction · 0.80

Calls 1

strMethod · 0.80

Tested by 2

require_same_shapeFunction · 0.64
run_caseFunction · 0.64