pose_format.tensorflow.masked.tensor_graph_mode_test module
Classes:
|
Unit tests for |
- class pose_format.tensorflow.masked.tensor_graph_mode_test.TestMaskedTensor(methodName='runTest')[source]
Bases:
TestCaseUnit tests for
MaskedTensorclass in TensorFlow.Methods:
Test the equality operation on a MaskedTensor during graph execution.
Test if attempting to convert a MaskedTensor to float raises a TypeError during graph execution.
- test_eq_graph_execution()[source]
Test the equality operation on a MaskedTensor during graph execution.
Note
This test evaluates if the MaskedTensor can be compared with a float number during TensorFlow graph execution without any errors.
- test_float_graph_execution_fails()[source]
Test if attempting to convert a MaskedTensor to float raises a TypeError during graph execution.
Note
This test ensures that if a user attempts to convert a MaskedTensor instance to a floating point number during TensorFlow graph execution, a TypeError should be raised.