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
ModelZoo
ResNet50_tensorflow
Commits
d90d5280
Unverified
Commit
d90d5280
authored
Jan 22, 2018
by
Neal Wu
Committed by
GitHub
Jan 22, 2018
Browse files
Merge pull request #3206 from cclauss/from-six.moves-import-xrange
from six.moves import xrange (en masse)
parents
6fc65ee6
848cc592
Changes
74
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
24 additions
and
8 deletions
+24
-8
research/differential_privacy/multiple_teachers/aggregation.py
...rch/differential_privacy/multiple_teachers/aggregation.py
+1
-2
research/differential_privacy/multiple_teachers/deep_cnn.py
research/differential_privacy/multiple_teachers/deep_cnn.py
+1
-2
research/differential_privacy/multiple_teachers/input.py
research/differential_privacy/multiple_teachers/input.py
+1
-0
research/differential_privacy/multiple_teachers/train_student.py
...h/differential_privacy/multiple_teachers/train_student.py
+1
-0
research/domain_adaptation/domain_separation/dsn_eval.py
research/domain_adaptation/domain_separation/dsn_eval.py
+1
-0
research/gan/cifar/util.py
research/gan/cifar/util.py
+1
-0
research/gan/image_compression/networks_test.py
research/gan/image_compression/networks_test.py
+1
-0
research/gan/mnist/util.py
research/gan/mnist/util.py
+1
-0
research/gan/mnist_estimator/train.py
research/gan/mnist_estimator/train.py
+1
-0
research/im2txt/im2txt/data/build_mscoco_data.py
research/im2txt/im2txt/data/build_mscoco_data.py
+1
-0
research/learned_optimizer/metaopt.py
research/learned_optimizer/metaopt.py
+1
-0
research/learning_to_remember_rare_events/data_utils.py
research/learning_to_remember_rare_events/data_utils.py
+1
-0
research/learning_to_remember_rare_events/memory.py
research/learning_to_remember_rare_events/memory.py
+1
-0
research/learning_to_remember_rare_events/train.py
research/learning_to_remember_rare_events/train.py
+1
-0
research/lfads/synth_data/generate_itb_data.py
research/lfads/synth_data/generate_itb_data.py
+5
-4
research/lfads/synth_data/generate_labeled_rnn_data.py
research/lfads/synth_data/generate_labeled_rnn_data.py
+1
-0
research/neural_gpu/data_utils.py
research/neural_gpu/data_utils.py
+1
-0
research/next_frame_prediction/cross_conv/eval.py
research/next_frame_prediction/cross_conv/eval.py
+1
-0
research/next_frame_prediction/cross_conv/example_gen.py
research/next_frame_prediction/cross_conv/example_gen.py
+1
-0
research/next_frame_prediction/cross_conv/model.py
research/next_frame_prediction/cross_conv/model.py
+1
-0
No files found.
research/differential_privacy/multiple_teachers/aggregation.py
View file @
d90d5280
...
@@ -19,6 +19,7 @@ from __future__ import division
...
@@ -19,6 +19,7 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
print_function
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
def
labels_from_probs
(
probs
):
def
labels_from_probs
(
probs
):
...
@@ -127,5 +128,3 @@ def aggregation_most_frequent(logits):
...
@@ -127,5 +128,3 @@ def aggregation_most_frequent(logits):
result
[
i
]
=
np
.
argmax
(
label_counts
)
result
[
i
]
=
np
.
argmax
(
label_counts
)
return
np
.
asarray
(
result
,
dtype
=
np
.
int32
)
return
np
.
asarray
(
result
,
dtype
=
np
.
int32
)
research/differential_privacy/multiple_teachers/deep_cnn.py
View file @
d90d5280
...
@@ -20,6 +20,7 @@ from __future__ import print_function
...
@@ -20,6 +20,7 @@ from __future__ import print_function
from
datetime
import
datetime
from
datetime
import
datetime
import
math
import
math
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
import
time
import
time
...
@@ -600,5 +601,3 @@ def softmax_preds(images, ckpt_path, return_logits=False):
...
@@ -600,5 +601,3 @@ def softmax_preds(images, ckpt_path, return_logits=False):
tf
.
reset_default_graph
()
tf
.
reset_default_graph
()
return
preds
return
preds
research/differential_privacy/multiple_teachers/input.py
View file @
d90d5280
...
@@ -24,6 +24,7 @@ import numpy as np
...
@@ -24,6 +24,7 @@ import numpy as np
import
os
import
os
from
scipy.io
import
loadmat
as
loadmat
from
scipy.io
import
loadmat
as
loadmat
from
six.moves
import
urllib
from
six.moves
import
urllib
from
six.moves
import
xrange
import
sys
import
sys
import
tarfile
import
tarfile
...
...
research/differential_privacy/multiple_teachers/train_student.py
View file @
d90d5280
...
@@ -19,6 +19,7 @@ from __future__ import division
...
@@ -19,6 +19,7 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
print_function
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
from
differential_privacy.multiple_teachers
import
aggregation
from
differential_privacy.multiple_teachers
import
aggregation
...
...
research/domain_adaptation/domain_separation/dsn_eval.py
View file @
d90d5280
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
import
math
import
math
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
from
domain_adaptation.datasets
import
dataset_factory
from
domain_adaptation.datasets
import
dataset_factory
...
...
research/gan/cifar/util.py
View file @
d90d5280
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
...
@@ -18,6 +18,7 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
tfgan
=
tf
.
contrib
.
gan
tfgan
=
tf
.
contrib
.
gan
...
...
research/gan/image_compression/networks_test.py
View file @
d90d5280
...
@@ -19,6 +19,7 @@ from __future__ import division
...
@@ -19,6 +19,7 @@ from __future__ import division
from
__future__
import
print_function
from
__future__
import
print_function
import
tensorflow
as
tf
import
tensorflow
as
tf
from
six.moves
import
xrange
import
networks
import
networks
...
...
research/gan/mnist/util.py
View file @
d90d5280
...
@@ -24,6 +24,7 @@ from __future__ import print_function
...
@@ -24,6 +24,7 @@ from __future__ import print_function
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
ds
=
tf
.
contrib
.
distributions
ds
=
tf
.
contrib
.
distributions
...
...
research/gan/mnist_estimator/train.py
View file @
d90d5280
...
@@ -22,6 +22,7 @@ import os
...
@@ -22,6 +22,7 @@ import os
import
numpy
as
np
import
numpy
as
np
import
scipy.misc
import
scipy.misc
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
from
mnist
import
data_provider
from
mnist
import
data_provider
...
...
research/im2txt/im2txt/data/build_mscoco_data.py
View file @
d90d5280
...
@@ -97,6 +97,7 @@ import threading
...
@@ -97,6 +97,7 @@ import threading
import
nltk.tokenize
import
nltk.tokenize
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
tf
.
flags
.
DEFINE_string
(
"train_image_dir"
,
"/tmp/train2014/"
,
tf
.
flags
.
DEFINE_string
(
"train_image_dir"
,
"/tmp/train2014/"
,
...
...
research/learned_optimizer/metaopt.py
View file @
d90d5280
...
@@ -21,6 +21,7 @@ import sys
...
@@ -21,6 +21,7 @@ import sys
import
time
import
time
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
from
learned_optimizer.optimizer
import
trainable_optimizer
from
learned_optimizer.optimizer
import
trainable_optimizer
...
...
research/learning_to_remember_rare_events/data_utils.py
View file @
d90d5280
...
@@ -29,6 +29,7 @@ import numpy as np
...
@@ -29,6 +29,7 @@ import numpy as np
from
scipy.misc
import
imresize
from
scipy.misc
import
imresize
from
scipy.misc
import
imrotate
from
scipy.misc
import
imrotate
from
scipy.ndimage
import
imread
from
scipy.ndimage
import
imread
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
research/learning_to_remember_rare_events/memory.py
View file @
d90d5280
...
@@ -23,6 +23,7 @@ published as a conference paper at ICLR 2017.
...
@@ -23,6 +23,7 @@ published as a conference paper at ICLR 2017.
"""
"""
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
research/learning_to_remember_rare_events/train.py
View file @
d90d5280
...
@@ -26,6 +26,7 @@ import os
...
@@ -26,6 +26,7 @@ import os
import
random
import
random
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
import
data_utils
import
data_utils
...
...
research/lfads/synth_data/generate_itb_data.py
View file @
d90d5280
...
@@ -18,6 +18,7 @@ from __future__ import print_function
...
@@ -18,6 +18,7 @@ from __future__ import print_function
import
h5py
import
h5py
import
numpy
as
np
import
numpy
as
np
import
os
import
os
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
from
utils
import
write_datasets
from
utils
import
write_datasets
...
@@ -47,12 +48,12 @@ flags.DEFINE_float("max_firing_rate", 30.0,
...
@@ -47,12 +48,12 @@ flags.DEFINE_float("max_firing_rate", 30.0,
flags
.
DEFINE_float
(
"u_std"
,
0.25
,
flags
.
DEFINE_float
(
"u_std"
,
0.25
,
"Std dev of input to integration to bound model"
)
"Std dev of input to integration to bound model"
)
flags
.
DEFINE_string
(
"checkpoint_path"
,
"SAMPLE_CHECKPOINT"
,
flags
.
DEFINE_string
(
"checkpoint_path"
,
"SAMPLE_CHECKPOINT"
,
"""Path to directory with checkpoints of model
"""Path to directory with checkpoints of model
trained on integration to bound task. Currently this
trained on integration to bound task. Currently this
is a placeholder which tells the code to grab the
is a placeholder which tells the code to grab the
checkpoint that is provided with the code
checkpoint that is provided with the code
(in /trained_itb/..). If you have your own checkpoint
(in /trained_itb/..). If you have your own checkpoint
you would like to restore, you would point it to
you would like to restore, you would point it to
that path."""
)
that path."""
)
FLAGS
=
flags
.
FLAGS
FLAGS
=
flags
.
FLAGS
...
...
research/lfads/synth_data/generate_labeled_rnn_data.py
View file @
d90d5280
...
@@ -18,6 +18,7 @@ from __future__ import print_function
...
@@ -18,6 +18,7 @@ from __future__ import print_function
import
os
import
os
import
h5py
import
h5py
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
from
synthetic_data_utils
import
generate_data
,
generate_rnn
from
synthetic_data_utils
import
generate_data
,
generate_rnn
from
synthetic_data_utils
import
get_train_n_valid_inds
from
synthetic_data_utils
import
get_train_n_valid_inds
...
...
research/neural_gpu/data_utils.py
View file @
d90d5280
...
@@ -21,6 +21,7 @@ import sys
...
@@ -21,6 +21,7 @@ import sys
import
time
import
time
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
import
program_utils
import
program_utils
...
...
research/next_frame_prediction/cross_conv/eval.py
View file @
d90d5280
...
@@ -20,6 +20,7 @@ import sys
...
@@ -20,6 +20,7 @@ import sys
import
time
import
time
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
import
model
as
cross_conv_model
import
model
as
cross_conv_model
...
...
research/next_frame_prediction/cross_conv/example_gen.py
View file @
d90d5280
...
@@ -18,6 +18,7 @@ import random
...
@@ -18,6 +18,7 @@ import random
import
sys
import
sys
import
numpy
as
np
import
numpy
as
np
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
...
...
research/next_frame_prediction/cross_conv/model.py
View file @
d90d5280
...
@@ -20,6 +20,7 @@ https://arxiv.org/pdf/1607.02586v1.pdf
...
@@ -20,6 +20,7 @@ https://arxiv.org/pdf/1607.02586v1.pdf
import
math
import
math
import
sys
import
sys
from
six.moves
import
xrange
import
tensorflow
as
tf
import
tensorflow
as
tf
slim
=
tf
.
contrib
.
slim
slim
=
tf
.
contrib
.
slim
...
...
Prev
1
2
3
4
Next
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