MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Array2Numpy

Function Array2Numpy

python/oneflow/test/graph/test_util.py:91–92  ·  view source on GitHub ↗
(input_array, target_shape)

Source from the content-addressed store, hash-verified

89
90
91def Array2Numpy(input_array, target_shape):
92 return np.array(input_array).reshape(target_shape, order="C")
93
94
95def Index2Coordinate(idx, tensor_shape):

Callers 4

_np_zero_pad2d_gradFunction · 0.90
_np_zero_pad2d_gradFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected