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

Function shape_elements

src/framework/assets/torch_bin.cpp:455–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453 for (size_t i = 0; i + 1 < result.items.size(); i += 2) {
454 if (result.items[i].kind == PickleValue::Kind::Str && result.items[i].text == "state_dict" &&
455 result.items[i + 1].kind == PickleValue::Kind::Dict) {
456 return result.items[i + 1].items;
457 }
458 }
459 return result.items;
460 }
461
462 const uint8_t * data_;
463 size_t size_;
464 size_t cursor_ = 0;

Callers 2

TorchBinTensorSourceMethod · 0.85
require_f32Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected