Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
c54a07df
"driver/conv_driver.cpp" did not exist on "940949d9d5d2302e414930f6d66aa57f34f2e55f"
Unverified
Commit
c54a07df
authored
May 23, 2022
by
Yuge Zhang
Committed by
GitHub
May 23, 2022
Browse files
Fix fast test (#4879)
parent
3f934d49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
docs/source/conf.py
docs/source/conf.py
+2
-0
nni/retiarii/nn/pytorch/api.py
nni/retiarii/nn/pytorch/api.py
+1
-1
No files found.
docs/source/conf.py
View file @
c54a07df
...
@@ -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
...
...
nni/retiarii/nn/pytorch/api.py
View file @
c54a07df
...
@@ -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.'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment