MCPcopy Create free account
hub / github.com/cwitkowitz/amt-tools / tensor_to_array

Function tensor_to_array

amt_tools/tools/utils.py:3412–3435  ·  view source on GitHub ↗

Simple helper function to convert a PyTorch tensor into a NumPy array in order to keep code readable. Parameters ---------- data : PyTorch tensor Tensor to convert to array Returns ---------- array : NumPy ndarray Converted array

(data)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

dict_to_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected