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

Method apply

tests/distributed/chunked_moe.py:105–106  ·  view source on GitHub ↗
(self, layer, x, gate, topk_ids_hookfunc=None)

Source from the content-addressed store, hash-verified

103
104class MockQuantMethod:
105 def apply(self, layer, x, gate, topk_ids_hookfunc=None):
106 return x
107
108
109class TestChunkedMoE(unittest.TestCase):

Callers 5

test_applyMethod · 0.45
test_apply_with_biasMethod · 0.45
get_baseline_logprobsFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_applyMethod · 0.36
test_apply_with_biasMethod · 0.36
get_baseline_logprobsFunction · 0.36