pose_format.torch.masked.torch_test module
Classes:
|
Test cases for the |
- class pose_format.torch.masked.torch_test.TestMaskedTorch(methodName='runTest')[source]
Bases:
TestCaseTest cases for the
MaskedTensorclassMethods:
test_cat()Test
catmethod for concatenatingMaskedTensorobjects along a specified dimension.Tests behavior when invoking an unimplemented method on a
MaskedTensor.Tests
stackmethod for stackingMaskedTensorobjects along a new dimension.Test if the mask in the produced
zerosMaskedTensoris initialized with zero values.Test if
zerosmethod correctly produces aMaskedTensorwith the desired shape.Test if the
zerosmethod produces aMaskedTensorwith the correct boolean data type.Test if the
zerosmethod produces aMaskedTensorwith the correct float data type.Test if the
zerosmethod produces aMaskedTensorwith all zero values.- test_cat()[source]
Test
catmethod for concatenatingMaskedTensorobjects along a specified dimension.
- test_not_implemented_method()[source]
Tests behavior when invoking an unimplemented method on a
MaskedTensor.
- test_stack()[source]
Tests
stackmethod for stackingMaskedTensorobjects along a new dimension.
- test_zeros_mask_value()[source]
Test if the mask in the produced
zerosMaskedTensoris initialized with zero values.
- test_zeros_tensor_shape()[source]
Test if
zerosmethod correctly produces aMaskedTensorwith the desired shape.
- test_zeros_tensor_type_bool()[source]
Test if the
zerosmethod produces aMaskedTensorwith the correct boolean data type.
- test_zeros_tensor_type_float()[source]
Test if the
zerosmethod produces aMaskedTensorwith the correct float data type.
- test_zeros_tensor_value()[source]
Test if the
zerosmethod produces aMaskedTensorwith all zero values.