Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ as_array
Function
as_array
dali/test/python/test_utils.py:862–864 ·
view source on GitHub ↗
(tensor)
Source
from the content-addressed store, hash-verified
860
861
862
def
as_array(tensor):
863
import_numpy()
864
return
np.array(tensor.as_cpu())
865
866
867
def
python_function(*inputs, function, **kwargs):
Callers
15
check_duplicated_outs_pipeline
Function · 0.90
check_serialized_outs_duplicated_pipeline
Function · 0.90
check_slice_with_out_of_bounds_policy_support
Function · 0.90
check_no_slice
Function · 0.90
check_rel_start_rel_shape
Function · 0.90
check_scalar
Function · 0.90
test_border_modes
Function · 0.90
check_pad_dynamic_axes
Function · 0.90
_testimpl_jpeg_compression_distortion_sequence
Function · 0.90
_test_type_conversion
Function · 0.90
check_cmn_crop_sequence_length
Function · 0.90
check_crop_mirror_normalize_empty_layout
Function · 0.90
Calls
1
import_numpy
Function · 0.70
Tested by
no test coverage detected