Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
7c9269c2
Commit
7c9269c2
authored
Sep 05, 2019
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge issues
parent
fcf59b2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
softmax.cpp
src/ngraph/op/softmax.cpp
+3
-2
softmax.hpp
src/ngraph/op/softmax.hpp
+6
-10
No files found.
src/ngraph/op/softmax.cpp
View file @
7c9269c2
...
...
@@ -28,7 +28,8 @@
using
namespace
std
;
using
namespace
ngraph
;
constexpr
NodeTypeInfo
op
::
Softmax
::
type_info
;
// *** SOFTMAX OP SET 0 ***
constexpr
NodeTypeInfo
op
::
v0
::
Softmax
::
type_info
;
op
::
v0
::
Softmax
::
Softmax
(
const
Output
<
Node
>&
arg
,
const
AxisSet
&
axes
)
:
Op
({
arg
})
...
...
@@ -106,7 +107,7 @@ void op::v0::Softmax::generate_adjoints(autodiff::Adjoints& adjoints, const Node
}
// *** SOFTMAX OP SET V1 ***
const
string
op
::
v1
::
Softmax
::
type_name
{
"Softmax"
}
;
const
expr
NodeTypeInfo
op
::
v1
::
Softmax
::
type_info
;
op
::
v1
::
Softmax
::
Softmax
(
const
Output
<
Node
>&
arg
,
const
size_t
axis
)
:
Op
({
arg
})
...
...
src/ngraph/op/softmax.hpp
View file @
7c9269c2
...
...
@@ -24,18 +24,14 @@ namespace ngraph
{
namespace
v0
{
public
:
NGRAPH_API
static
constexpr
NodeTypeInfo
type_info
{
"Softmax"
,
0
};
const
NodeTypeInfo
&
get_type_info
()
const
override
{
return
type_info
;
}
Softmax
()
=
default
;
/// \brief Constructs a softmax operation.
/// \brief Softmax operation.
///
class
Softmax
:
public
Op
{
public
:
NGRAPH_API
static
const
std
::
string
type_name
;
const
std
::
string
&
description
()
const
override
{
return
type_name
;
}
static
const
expr
NodeTypeInfo
type_info
{
"Softmax"
,
0
}
;
const
NodeTypeInfo
&
get_type_info
()
const
override
{
return
type_info
;
}
Softmax
()
=
default
;
/// \brief Constructs a softmax operation.
///
...
...
@@ -67,8 +63,8 @@ namespace ngraph
{
public
:
NGRAPH_API
static
const
std
::
string
type_name
;
const
std
::
string
&
description
()
const
override
{
return
type_name
;
}
static
const
expr
NodeTypeInfo
type_info
{
"Softmax"
,
1
}
;
const
NodeTypeInfo
&
get_type_info
()
const
override
{
return
type_info
;
}
Softmax
()
:
m_axis
(
0
)
{
...
...
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