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
c1c7b9b1
Commit
c1c7b9b1
authored
Sep 01, 2019
by
Alexey Golunov
Committed by
Jared Roesch
Aug 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NNVM][FRONTEND][ONNX] Fix PReLU conversion (#3813)
parent
d08c74ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
nnvm/python/nnvm/frontend/onnx.py
+1
-4
No files found.
nnvm/python/nnvm/frontend/onnx.py
View file @
c1c7b9b1
...
...
@@ -307,10 +307,7 @@ class Prelu(OnnxOpConverter):
def
_impl_v1
(
cls
,
inputs
,
attr
,
params
):
assert
len
(
inputs
)
==
2
,
"Prelu need 2 inputs, {} given"
.
format
(
len
(
inputs
))
channels
=
infer_channels
(
inputs
[
1
],
params
,
False
)
if
channels
==
1
:
return
inputs
[
0
]
*
inputs
[
1
]
return
_sym
.
broadcast_mul
(
inputs
[
0
],
inputs
[
1
])
return
_sym
.
prelu
(
inputs
[
0
],
inputs
[
1
])
class
Reciprocal
(
OnnxOpConverter
):
...
...
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