Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/InternLM/InternLM
/ exec_code
Method
exec_code
tools/pal_inference.py:102–103 ·
view source on GitHub ↗
(self, code_piece: str)
Source
from the content-addressed store, hash-verified
100
self.exec_code(c)
101
102
def
exec_code(self, code_piece: str) -> None:
103
exec(code_piece, self._global_vars)
104
105
def
eval_code(self, expr: str) -> Any:
106
return
eval(expr, self._global_vars)
Callers
2
__init__
Method · 0.95
execute
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected