Closed
Description
MemmapTensor
s can be created via MemmapTensor(tensor)
, MemmapTensor(memmap_tensor)
, MemmapTensor(array)
and MemmapTensor(*size, device=device, dtype=dtype)
.
We don't explicitely test those four methods of creating a memmap tensor.
The test should include:
- tests regarding device: is the device the one expected (using
get_available_devices()
andpytest.mark.parameterize
). Is the device accurate after callingto(device)
? - similar tests for dtype
- testing that inputting a zero-tensor / zero-array / zero-memmap to
MemmapTensor
results in the same tensor (ie has the same value) than creating aMemmapTensor
via its shape
Metadata
Metadata
Assignees
Labels
No labels