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

Method with_last_dim

src/framework/core/module.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84TensorShape TensorShape::with_last_dim(int64_t value) const {
85 TensorShape result = *this;
86 result.dims[rank - 1] = value;
87 ensure_positive_dims(result);
88 return result;
89}
90
91std::string TensorShape::to_string() const {
92 std::ostringstream out;

Callers 6

buildMethod · 0.80
linear_nativeFunction · 0.80
linear_nativeFunction · 0.80
buildMethod · 0.80
linear_lastdimFunction · 0.80
linear_lastdimFunction · 0.80

Calls 1

ensure_positive_dimsFunction · 0.85

Tested by

no test coverage detected