MCPcopy Create free account
hub / github.com/NVIDIA/DALI / test_pytorch_containers

Function test_pytorch_containers

dali/test/python/test_external_source_impl_utils.py:83–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82@attr("pytorch")
83def test_pytorch_containers():
84 import torch
85
86 samples_cpu = [
87 (torch.tensor(test_array), test_array),
88 ]
89 batches_cpu = [
90 ([torch.tensor(test_array)], [test_array]),
91 ([torch.tensor(test_array)] * 4, [test_array] * 4),
92 ]
93 disallowed_samples = [
94 torch.tensor(test_array).cuda(),
95 ]
96 yield from run_checks(samples_cpu, batches_cpu, disallowed_samples, [])
97
98
99@attr("cupy")

Callers

nothing calls this directly

Calls 1

run_checksFunction · 0.85

Tested by

no test coverage detected