Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
STARRED
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
COSMOGRAIL
STARRED
Commits
6e4da956
Commit
6e4da956
authored
1 year ago
by
Martin Millon
Browse files
Options
Downloads
Patches
Plain Diff
fixing pipeline
parent
d0eece7e
No related branches found
No related tags found
No related merge requests found
Pipeline
#1103244444
passed
1 year ago
Stage: test
Stage: build-doc
Stage: doc-status
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
starred/optim/optimization.py
+2
-2
2 additions, 2 deletions
starred/optim/optimization.py
tests/test_deconv/test_deconv.py
+0
-3
0 additions, 3 deletions
tests/test_deconv/test_deconv.py
with
2 additions
and
5 deletions
starred/optim/optimization.py
+
2
−
2
View file @
6e4da956
...
...
@@ -151,8 +151,8 @@ class Optimizer(InferenceBase):
return
params
,
opt_state
,
loss_val
# Gradient descent loop
for
i
in
self
.
_for_loop
(
range
(
max_iterations
),
progress_bar
,
total
=
max_iterations
,
for
i
in
self
.
_for_loop
(
range
(
int
(
max_iterations
)
)
,
progress_bar
,
total
=
int
(
max_iterations
)
,
desc
=
f
"
optax.
{
self
.
method
}
"
):
params
,
opt_state
,
loss_val
=
gradient_step
(
params
,
opt_state
)
if
stop_at_loss_increase
and
i
>
min_iterations
and
loss_val
>
prev_loss_val
:
#pragma: no cover
...
...
This diff is collapsed.
Click to expand it.
tests/test_deconv/test_deconv.py
+
0
−
3
View file @
6e4da956
...
...
@@ -105,9 +105,6 @@ class TestOptim(unittest.TestCase):
view_deconv_model
(
model
,
kwargs_final
,
data
,
sigma_2
)
make_movie
(
model
,
kwargs_final
,
data
,
sigma_2
,
self
.
outpath
,
format
=
'
gif
'
)
with
self
.
assertRaises
(
RuntimeError
):
make_movie
(
model
,
kwargs_final
,
data
,
sigma_2
,
self
.
outpath
,
format
=
'
xxx
'
)
# This requires installation that are too heavy for the Docker. Skip this part
# make_movie(model, kwargs_final, data, sigma_2, self.outpath, format='mp4v')
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment