Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
ea093029
Commit
ea093029
authored
Aug 06, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warning about np1.8
parent
9e598322
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
examples/cifar-convnet.py
examples/cifar-convnet.py
+1
-2
scripts/checkpoint-manipulate.py
scripts/checkpoint-manipulate.py
+1
-0
tensorpack/RL/envbase.py
tensorpack/RL/envbase.py
+1
-0
tensorpack/__init__.py
tensorpack/__init__.py
+3
-0
No files found.
examples/cifar-convnet.py
View file @
ea093029
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
# -*- coding: UTF-8 -*-
# -*- coding: UTF-8 -*-
# File: cifar-convnet.py
# File: cifar-convnet.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import
numpy
import
tensorflow
as
tf
import
tensorflow
as
tf
import
argparse
import
argparse
import
numpy
as
np
import
numpy
as
np
...
@@ -101,7 +100,7 @@ def get_data(train_or_test, cifar_classnum):
...
@@ -101,7 +100,7 @@ def get_data(train_or_test, cifar_classnum):
ds
=
AugmentImageComponent
(
ds
,
augmentors
)
ds
=
AugmentImageComponent
(
ds
,
augmentors
)
ds
=
BatchData
(
ds
,
128
,
remainder
=
not
isTrain
)
ds
=
BatchData
(
ds
,
128
,
remainder
=
not
isTrain
)
if
isTrain
:
if
isTrain
:
ds
=
PrefetchData
ZMQ
(
ds
,
5
)
ds
=
PrefetchData
(
ds
,
3
,
2
)
return
ds
return
ds
def
get_config
(
cifar_classnum
):
def
get_config
(
cifar_classnum
):
...
...
scripts/checkpoint-manipulate.py
View file @
ea093029
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import
numpy
as
np
from
tensorpack.tfutils.varmanip
import
dump_chkpt_vars
from
tensorpack.tfutils.varmanip
import
dump_chkpt_vars
import
tensorflow
as
tf
import
tensorflow
as
tf
import
sys
import
sys
...
...
tensorpack/RL/envbase.py
View file @
ea093029
...
@@ -60,6 +60,7 @@ class RLEnvironment(object):
...
@@ -60,6 +60,7 @@ class RLEnvironment(object):
s
=
self
.
current_state
()
s
=
self
.
current_state
()
act
=
func
(
s
)
act
=
func
(
s
)
r
,
isOver
=
self
.
action
(
act
)
r
,
isOver
=
self
.
action
(
act
)
#print r
if
isOver
:
if
isOver
:
s
=
[
self
.
stats
[
k
]
for
k
in
stat
]
s
=
[
self
.
stats
[
k
]
for
k
in
stat
]
self
.
reset_stat
()
self
.
reset_stat
()
...
...
tensorpack/__init__.py
View file @
ea093029
...
@@ -19,3 +19,6 @@ from .tfutils import *
...
@@ -19,3 +19,6 @@ from .tfutils import *
from
.callbacks
import
*
from
.callbacks
import
*
from
.dataflow
import
*
from
.dataflow
import
*
from
.predict
import
*
from
.predict
import
*
if
int
(
numpy
.
__version__
.
split
(
'.'
)[
1
])
<
9
:
logger
.
warn
(
"Numpy < 1.9 could be extremely slow on some tasks."
)
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