浏览代码

fix comparison sign

AlpinDale 4 月之前
父节点
当前提交
22423eff8a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      aphrodite/common/sampling_params.py

+ 1 - 1
aphrodite/common/sampling_params.py

@@ -375,7 +375,7 @@ class SamplingParams(
             raise ValueError(
                 "xtc_probability must be in [0, 1], got "
                 f"{self.xtc_probability}.")
-        if not self.nsigma <= 0.0:
+        if self.nsigma <= 0.0:
             raise ValueError(
                 "nsigma must be non-negative, got "
                 f"{self.nsigma}.")