mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-01 14:52:33 +08:00
native top_p_sampling (#2901)
This commit is contained in:
@@ -61,6 +61,7 @@ class LinearBase(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