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
492a37c5
Commit
492a37c5
authored
Dec 27, 2017
by
Yuwei Hu
Committed by
Tianqi Chen
May 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] make keras frontend py3 compatible (#283)
parent
999dd1ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nnvm/python/nnvm/frontend/keras.py
+2
-2
No files found.
nnvm/python/nnvm/frontend/keras.py
View file @
492a37c5
...
...
@@ -17,7 +17,7 @@ def _check_data_format(keras_layer):
def
_convert_activation
(
insym
,
keras_layer
,
_
):
if
isinstance
(
keras_layer
,
(
str
,
unicode
)
):
if
isinstance
(
keras_layer
,
str
):
act_type
=
keras_layer
else
:
if
sys
.
version_info
.
major
<
3
:
...
...
@@ -25,7 +25,7 @@ def _convert_activation(insym, keras_layer, _):
else
:
act_type
=
keras_layer
.
activation
.
__name__
if
act_type
==
'linear'
:
if
isinstance
(
keras_layer
,
(
str
,
unicode
)
):
if
isinstance
(
keras_layer
,
str
):
return
insym
return
_sym
.
__add_scalar__
(
_sym
.
__mul_scalar__
(
insym
,
\
scalar
=
keras_layer
.
alpha
),
scalar
=
keras_layer
.
beta
)
...
...
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