MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / sam3_get_model_tensor_info

Function sam3_get_model_tensor_info

sam3.cpp:14419–14428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14417}
14418
14419bool sam3_get_model_tensor_info(const sam3_model & model,
14420 const std::string & tensor_name,
14421 sam3_tensor_info & info) {
14422 auto it = model.tensors.find(tensor_name);
14423 if (it == model.tensors.end() || !it->second) {
14424 fprintf(stderr, "%s: tensor '%s' not found in model\n", __func__, tensor_name.c_str());
14425 return false;
14426 }
14427 return sam3_fill_tensor_info(it->second, info);
14428}
14429
14430bool sam3_dump_model_tensor(const sam3_model & model,
14431 const std::string & tensor_name,

Callers 3

mainFunction · 0.85
is_global_blockFunction · 0.85
mainFunction · 0.85

Calls 1

sam3_fill_tensor_infoFunction · 0.85

Tested by 3

mainFunction · 0.68
is_global_blockFunction · 0.68
mainFunction · 0.68