Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
d060e919
Commit
d060e919
authored
Aug 22, 2018
by
Siju
Committed by
Tianqi Chen
Aug 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FRONTEND]minor bug fixes (#1632)
parent
ca768109
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
nnvm/python/nnvm/frontend/tensorflow.py
+2
-3
No files found.
nnvm/python/nnvm/frontend/tensorflow.py
View file @
d060e919
...
@@ -430,7 +430,6 @@ def _fill():
...
@@ -430,7 +430,6 @@ def _fill():
def
_lrn
():
def
_lrn
():
def
_impl
(
inputs
,
attr
,
params
):
def
_impl
(
inputs
,
attr
,
params
):
new_inputs
=
[]
attr_new
=
{}
attr_new
=
{}
depth_radius
=
attr
.
get
(
'depth_radius'
,
5
)
depth_radius
=
attr
.
get
(
'depth_radius'
,
5
)
size
=
(
depth_radius
*
2
)
+
1
size
=
(
depth_radius
*
2
)
+
1
...
@@ -439,7 +438,7 @@ def _lrn():
...
@@ -439,7 +438,7 @@ def _lrn():
attr_new
[
'bias'
]
=
attr
.
get
(
'bias'
,
1
)
attr_new
[
'bias'
]
=
attr
.
get
(
'bias'
,
1
)
attr_new
[
'alpha'
]
=
attr
.
get
(
'alpha'
,
1
)
*
size
attr_new
[
'alpha'
]
=
attr
.
get
(
'alpha'
,
1
)
*
size
attr_new
[
'beta'
]
=
attr
.
get
(
'beta'
,
0.5
)
attr_new
[
'beta'
]
=
attr
.
get
(
'beta'
,
0.5
)
return
AttrCvt
(
op_name
=
'lrn'
)(
new_
inputs
,
attr_new
)
return
AttrCvt
(
op_name
=
'lrn'
)(
inputs
,
attr_new
)
return
_impl
return
_impl
def
_sum
():
def
_sum
():
...
@@ -613,7 +612,7 @@ def _LSTMBlockCell():
...
@@ -613,7 +612,7 @@ def _LSTMBlockCell():
ixh
=
_sym
.
concatenate
(
*
[
in_data
,
in_state_h
],
axis
=
1
)
ixh
=
_sym
.
concatenate
(
*
[
in_data
,
in_state_h
],
axis
=
1
)
in_weight
=
_sym
.
transpose
(
in_weight
)
in_weight
=
_sym
.
transpose
(
in_weight
)
gates
=
_sym
.
dense
(
ixh
,
in_weight
,
in_bias
,
use_bias
=
True
,
gates
=
_sym
.
dense
(
ixh
,
in_weight
,
in_bias
,
use_bias
=
True
,
units
=
num_hidden_layers
,
name
=
"dense"
)
units
=
num_hidden_layers
)
gate_list
=
_sym
.
split
(
gates
,
indices_or_sections
=
4
,
axis
=
1
)
gate_list
=
_sym
.
split
(
gates
,
indices_or_sections
=
4
,
axis
=
1
)
in_gate
=
_sym
.
sigmoid
(
gate_list
[
0
])
in_gate
=
_sym
.
sigmoid
(
gate_list
[
0
])
in_transform
=
_sym
.
tanh
(
gate_list
[
1
])
in_transform
=
_sym
.
tanh
(
gate_list
[
1
])
...
...
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