MCPcopy Create free account
hub / github.com/bytedance/bolt / get_function

Function get_function

bolt/torch/Utils.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82Function* get_function(const CompilationUnit& compilation_unit) {
83 auto functions = compilation_unit.get_functions();
84 if (functions.empty()) {
85 BOLT_FAIL("torch compilation unit does not contain a functions");
86 }
87
88 return functions.back();
89}
90} // namespace bytedance::bolt::torch

Callers 4

TorchOperatorMethod · 0.85
Operator.cppFile · 0.85
checkCompiledScriptFunction · 0.85
TorchNodeMethod · 0.85

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected