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
a86fae00
Commit
a86fae00
authored
Sep 13, 2017
by
Tianqi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TOP] Add comments about optimizable ops (#10)
parent
0aa8ce01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
nnvm/src/top/nn/nn.cc
+8
-1
No files found.
nnvm/src/top/nn/nn.cc
View file @
a86fae00
...
...
@@ -163,6 +163,9 @@ by::
The parameter ``axis`` specifies which axis of the input shape denotes
the 'channel' (separately normalized groups). The default is 1. Specifying -1 sets the channel
axis to be the last item in the input shape.
.. note::
This operator can be optimized away for inference.
)"
NNVM_ADD_FILELINE
)
.
add_argument
(
"data"
,
"Tensor"
,
"Input to which dropout will be applied"
)
.
add_argument
(
"gamma"
,
"Tensor"
,
"The gamma scale factor"
)
...
...
@@ -197,6 +200,8 @@ NNVM_REGISTER_OP(softmax)
.. math:: \text{softmax}(x)_i = \frac{exp(x_i)}{\sum_j exp(x_j)}
.. note::
This operator can be optimized away for inference.
)code"
NNVM_ADD_FILELINE
)
.
set_num_inputs
(
1
)
.
set_num_outputs
(
1
)
...
...
@@ -208,10 +213,12 @@ NNVM_REGISTER_OP(softmax)
// log_softmax
NNVM_REGISTER_OP
(
log_softmax
)
.
describe
(
R"code(Computes softmax.
.
describe
(
R"code(Computes
log
softmax.
.. math:: \text{log_softmax}(x)_i = \log \frac{exp(x_i)}{\sum_j exp(x_j)}
.. note::
This operator can be optimized away for inference.
)code"
NNVM_ADD_FILELINE
)
.
set_num_inputs
(
1
)
.
set_num_outputs
(
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