Skip to content

Commit

Permalink
warning about np1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Aug 7, 2016
1 parent 9e59832 commit ea09302
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/cifar-convnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# -*- coding: UTF-8 -*-
# File: cifar-convnet.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import numpy
import tensorflow as tf
import argparse
import numpy as np
Expand Down Expand Up @@ -101,7 +100,7 @@ def get_data(train_or_test, cifar_classnum):
ds = AugmentImageComponent(ds, augmentors)
ds = BatchData(ds, 128, remainder=not isTrain)
if isTrain:
ds = PrefetchDataZMQ(ds, 5)
ds = PrefetchData(ds, 3, 2)
return ds

def get_config(cifar_classnum):
Expand Down
1 change: 1 addition & 0 deletions scripts/checkpoint-manipulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>


import numpy as np
from tensorpack.tfutils.varmanip import dump_chkpt_vars
import tensorflow as tf
import sys
Expand Down
1 change: 1 addition & 0 deletions tensorpack/RL/envbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def play_one_episode(self, func, stat='score'):
s = self.current_state()
act = func(s)
r, isOver = self.action(act)
#print r
if isOver:
s = [self.stats[k] for k in stat]
self.reset_stat()
Expand Down
3 changes: 3 additions & 0 deletions tensorpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
from .callbacks import *
from .dataflow import *
from .predict import *

if int(numpy.__version__.split('.')[1]) < 9:
logger.warn("Numpy < 1.9 could be extremely slow on some tasks.")

0 comments on commit ea09302

Please sign in to comment.