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
63447939
Commit
63447939
authored
Feb 14, 2017
by
Andrew Selle
Browse files
Update concat_v2 to be concat to match 1.0 final
Fixes #1014
parent
596c9e23
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
resnet/cifar_input.py
resnet/cifar_input.py
+1
-1
tutorials/rnn/ptb/ptb_word_lm.py
tutorials/rnn/ptb/ptb_word_lm.py
+1
-1
No files found.
resnet/cifar_input.py
View file @
63447939
...
...
@@ -100,7 +100,7 @@ def build_input(dataset, data_path, batch_size, mode):
labels
=
tf
.
reshape
(
labels
,
[
batch_size
,
1
])
indices
=
tf
.
reshape
(
tf
.
range
(
0
,
batch_size
,
1
),
[
batch_size
,
1
])
labels
=
tf
.
sparse_to_dense
(
tf
.
concat
_v2
(
values
=
[
indices
,
labels
],
axis
=
1
),
tf
.
concat
(
values
=
[
indices
,
labels
],
axis
=
1
),
[
batch_size
,
num_classes
],
1.0
,
0.0
)
assert
len
(
images
.
get_shape
())
==
4
...
...
tutorials/rnn/ptb/ptb_word_lm.py
View file @
63447939
...
...
@@ -146,7 +146,7 @@ class PTBModel(object):
(
cell_output
,
state
)
=
cell
(
inputs
[:,
time_step
,
:],
state
)
outputs
.
append
(
cell_output
)
output
=
tf
.
reshape
(
tf
.
concat
_v2
(
outputs
,
1
),
[
-
1
,
size
])
output
=
tf
.
reshape
(
tf
.
concat
(
outputs
,
1
),
[
-
1
,
size
])
softmax_w
=
tf
.
get_variable
(
"softmax_w"
,
[
size
,
vocab_size
],
dtype
=
data_type
())
softmax_b
=
tf
.
get_variable
(
"softmax_b"
,
[
vocab_size
],
dtype
=
data_type
())
...
...
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