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

Method test_eq_same

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

Source from the content-addressed store, hash-verified

89 self.assertIs(pooler[1], new_output)
90
91 def test_eq_same(self):
92 outputs1 = [PoolingSequenceGroupOutput(data=1)]
93 outputs2 = [PoolingSequenceGroupOutput(data=1)]
94 pooler1 = PoolerOutput(outputs=outputs1)
95 pooler2 = PoolerOutput(outputs=outputs2)
96 self.assertTrue(pooler1 == pooler2)
97
98 def test_eq_diff(self):
99 pooler1 = PoolerOutput(outputs=[PoolingSequenceGroupOutput(data=1)])

Callers

nothing calls this directly

Calls 2

PoolerOutputClass · 0.90

Tested by

no test coverage detected