Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
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
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
c9e65e58
Commit
c9e65e58
authored
4 years ago
by
rink
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
cd85b3f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/util/setup.py
+2
-8
2 additions, 8 deletions
modules/util/setup.py
with
2 additions
and
8 deletions
modules/util/setup.py
+
2
−
8
View file @
c9e65e58
...
...
@@ -3,22 +3,18 @@ from __future__ import division, print_function, unicode_literals
# Common imports
import
numpy
as
np
import
os
import
glob
import
imageio
import
h5py
from
scipy
import
misc
from
pathlib
import
Path
# to make this notebook's output stable across runs
def
reset_graph
(
seed
=
42
):
tf
.
compat
.
v1
.
reset_default_graph
()
tf
.
compat
.
v1
.
set_random_seed
(
seed
)
np
.
random
.
seed
(
seed
)
# To plot pretty figures
import
matplotlib
import
matplotlib.pyplot
as
plt
plt
.
rcParams
[
'
axes.labelsize
'
]
=
14
plt
.
rcParams
[
'
xtick.labelsize
'
]
=
12
...
...
@@ -44,6 +40,4 @@ root_cachedir = home_dir+'/cache'
cachepath
=
"
{}/run-{}
"
.
format
(
root_cachedir
,
now
)
cachepath
=
cachepath
+
'
.pkl
'
from
importlib
import
reload
gpu_devices
=
{
0
:
'
/device:GPU:0
'
,
1
:
'
/device:GPU:1
'
,
2
:
'
/device:GPU:2
'
}
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