MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / test_eq_diff

Method test_eq_diff

tests/output/test_pooler.py:98–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 self.assertTrue(pooler1 == pooler2)
97
98 def test_eq_diff(self):
99 pooler1 = PoolerOutput(outputs=[PoolingSequenceGroupOutput(data=1)])
100 pooler2 = PoolerOutput(outputs=[PoolingSequenceGroupOutput(data=2)])
101 self.assertFalse(pooler1 == pooler2)
102
103 def test_eq_type_mismatch(self):
104 pooler = PoolerOutput(outputs=[PoolingSequenceGroupOutput(data=1)])

Callers

nothing calls this directly

Calls 2

PoolerOutputClass · 0.90

Tested by

no test coverage detected