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
75654835
Commit
75654835
authored
Sep 06, 2018
by
nhynes
Committed by
Yizhi Liu
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow log_softmax on explicit trailing dim (#1684)
parent
d173e637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
nnvm/src/top/nn/nn.cc
+2
-1
No files found.
nnvm/src/top/nn/nn.cc
View file @
75654835
...
...
@@ -410,7 +410,8 @@ NNVM_REGISTER_OP(log_softmax)
const
Array
<
Tensor
>&
inputs
,
const
Array
<
Tensor
>&
out_info
)
{
const
SoftmaxParam
&
param
=
nnvm
::
get
<
SoftmaxParam
>
(
attrs
.
parsed
);
CHECK_EQ
(
param
.
axis
,
-
1
)
<<
"Currently only axis=-1 is supported"
;
CHECK
(
param
.
axis
==
-
1
||
param
.
axis
==
static_cast
<
int32_t
>
(
inputs
[
0
].
ndim
())
-
1
)
<<
"log_softmax currently only works on last dimension"
;
return
Array
<
Tensor
>
{
topi
::
nn
::
log_softmax
(
inputs
[
0
])
};
})
.
set_attr
<
FGradient
>
(
...
...
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