mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
native top_p_sampling (#2901)
This commit is contained in:
@@ -173,6 +173,7 @@ class Sampler(nn.Layer):
|
||||
or current_platform.is_xpu()
|
||||
or current_platform.is_iluvatar()
|
||||
or current_platform.is_gcu()
|
||||
or current_platform.is_dcu()
|
||||
):
|
||||
self.forward = self.forward_cuda
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user