Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeformRobotics/OTS
/ as_numpy
Function
as_numpy
lib/nn/modules/unittest.py:17–20 ·
view source on GitHub ↗
(v)
Source
from the content-addressed store, hash-verified
15
16
17
def
as_numpy(v):
18
if
isinstance(v, Variable):
19
v = v.data
20
return
v.cpu().numpy()
21
22
23
class
TorchTestCase(unittest.TestCase):
Callers
1
assertTensorClose
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected