pose_format.tensorflow.masked.tensor_graph_mode_test module

Classes:

TestMaskedTensor([methodName])

Unit tests for MaskedTensor class in TensorFlow.

class pose_format.tensorflow.masked.tensor_graph_mode_test.TestMaskedTensor(methodName='runTest')[source]

Bases: TestCase

Unit tests for MaskedTensor class in TensorFlow.

Methods:

test_eq_graph_execution()

Test the equality operation on a MaskedTensor during graph execution.

test_float_graph_execution_fails()

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.