"driver/conv_driver.cpp" did not exist on "940949d9d5d2302e414930f6d66aa57f34f2e55f"
Unverified Commit c54a07df authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

Fix fast test (#4879)

parent 3f934d49
...@@ -107,6 +107,8 @@ linkcheck_ignore = [ ...@@ -107,6 +107,8 @@ linkcheck_ignore = [
r'https://help\.aliyun\.com/document_detail/\d+\.html', # Aliyun r'https://help\.aliyun\.com/document_detail/\d+\.html', # Aliyun
r'http://www\.image-net\.org/', # ImageNet r'http://www\.image-net\.org/', # ImageNet
r'https://www\.msra\.cn/', # MSRA r'https://www\.msra\.cn/', # MSRA
r'https://1drv\.ms/', # OneDrive (shortcut)
r'https://onedrive\.live\.com/', # OneDrive
] ]
# Ignore all links located in release.rst # Ignore all links located in release.rst
......
...@@ -875,7 +875,7 @@ class ValueChoice(ValueChoiceX[_cand], Mutable): ...@@ -875,7 +875,7 @@ class ValueChoice(ValueChoiceX[_cand], Mutable):
return value return value
def __init__(self, candidates: List[_cand], *, prior: Optional[List[float]] = None, label: Optional[str] = None): def __init__(self, candidates: List[_cand], *, prior: Optional[List[float]] = None, label: Optional[str] = None):
super().__init__() super().__init__() # type: ignore
self.candidates = candidates self.candidates = candidates
self.prior = prior or [1 / len(candidates) for _ in range(len(candidates))] self.prior = prior or [1 / len(candidates) for _ in range(len(candidates))]
assert abs(sum(self.prior) - 1) < 1e-5, 'Sum of prior distribution is not 1.' assert abs(sum(self.prior) - 1) < 1e-5, 'Sum of prior distribution is not 1.'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment