python_utils
Structs
Functions
memcpy_to_numpy
memcpy_to_numpy(array: PythonObject, tensor: Array)
shape_to_python_list
shape_to_python_list(shape: List[Int]) -> PythonObject
get_np_dtype
get_np_dtype[dtype: DType](np: PythonObject) -> PythonObject
array_to_numpy
array_to_numpy(tensor: Array, np: PythonObject) -> PythonObject
tensor_to_array
tensor_to_array(owned src: Tensor[float32]) -> Array
Last updated on