Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
re3-tensorflow
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
Model registry
Operate
Environments
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
Daniel Gordon
re3-tensorflow
Commits
46c69bb3
Commit
46c69bb3
authored
7 years ago
by
Daniel Gordon
Browse files
Options
Downloads
Patches
Plain Diff
fixed tiny bugs
parent
7ef88c0c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
re3_utils/tensorflow_util/tf_queue.py
+1
-1
1 addition, 1 deletion
re3_utils/tensorflow_util/tf_queue.py
tracker/network.py
+2
-5
2 additions, 5 deletions
tracker/network.py
with
3 additions
and
6 deletions
re3_utils/tensorflow_util/tf_queue.py
+
1
−
1
View file @
46c69bb3
...
...
@@ -83,7 +83,7 @@ class TFQueue(object):
len
(
self
.
data_buffer
),
(
len
(
self
.
data_buffer
)
-
len
(
self
.
data_counts
[
self
.
data_counts
>
0
])),
np
.
max
(
self
.
data_counts
),
np
.
median
(
self
.
data_counts
)))
np
.
median
(
self
.
data_counts
[:
len
(
self
.
data_buffer
)]
)))
else
:
print
(
'
Buffer Full. Num unused: %d Max times used: %d Median times used: %d
\n
'
%
(
(
len
(
self
.
data_buffer
)
-
len
(
self
.
data_counts
[
self
.
data_counts
>
0
])),
...
...
This diff is collapsed.
Click to expand it.
tracker/network.py
+
2
−
5
View file @
46c69bb3
...
...
@@ -141,11 +141,8 @@ def inference(inputs, num_unrolls, train, batch_size=None, prevLstmState=None, r
lstmVars
=
[
var
for
var
in
tf
.
trainable_variables
()
if
'
lstm2
'
in
var
.
name
]
for
var
in
lstmVars
:
tf_util
.
variable_summaries
(
var
,
var
.
name
[:
-
2
])
with
tf
.
variable_scope
(
'
lstm_output_concat
'
):
# BxTxC
outputs_concat
=
tf
.
concat
(
lstm2_outputs
,
0
)
outputs_reshape
=
tf_util
.
remove_axis
(
outputs_concat
,
1
)
# (BxT)xC
outputs_reshape
=
tf_util
.
remove_axis
(
lstm2_outputs
,
1
)
# Final FC layer.
with
tf
.
variable_scope
(
'
fc_output
'
):
...
...
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