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
5e066523
Commit
5e066523
authored
Nov 29, 2017
by
Adam Procter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting
parent
4ccb3757
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
163 additions
and
151 deletions
+163
-151
convert.hpp
src/ngraph/runtime/kernel/convert.hpp
+1
-1
copy.hpp
src/ngraph/runtime/kernel/copy.hpp
+1
-1
equal.hpp
src/ngraph/runtime/kernel/equal.hpp
+2
-1
greater.hpp
src/ngraph/runtime/kernel/greater.hpp
+4
-1
greater_eq.hpp
src/ngraph/runtime/kernel/greater_eq.hpp
+4
-1
less_eq.hpp
src/ngraph/runtime/kernel/less_eq.hpp
+4
-1
not.hpp
src/ngraph/runtime/kernel/not.hpp
+3
-1
not_equal.hpp
src/ngraph/runtime/kernel/not_equal.hpp
+4
-1
power.hpp
src/ngraph/runtime/kernel/power.hpp
+1
-1
select.hpp
src/ngraph/runtime/kernel/select.hpp
+5
-1
external_function.cpp
src/ngraph/runtime/ngvm/external_function.cpp
+26
-26
abs.hpp
src/ngraph/runtime/ngvm/instruction/abs.hpp
+2
-3
acos.hpp
src/ngraph/runtime/ngvm/instruction/acos.hpp
+2
-3
add.hpp
src/ngraph/runtime/ngvm/instruction/add.hpp
+1
-1
asin.hpp
src/ngraph/runtime/ngvm/instruction/asin.hpp
+2
-3
atan.hpp
src/ngraph/runtime/ngvm/instruction/atan.hpp
+2
-3
ceiling.hpp
src/ngraph/runtime/ngvm/instruction/ceiling.hpp
+2
-3
convert.hpp
src/ngraph/runtime/ngvm/instruction/convert.hpp
+4
-5
copy.hpp
src/ngraph/runtime/ngvm/instruction/copy.hpp
+2
-3
cos.hpp
src/ngraph/runtime/ngvm/instruction/cos.hpp
+2
-3
cosh.hpp
src/ngraph/runtime/ngvm/instruction/cosh.hpp
+2
-3
divide.hpp
src/ngraph/runtime/ngvm/instruction/divide.hpp
+3
-3
equal.hpp
src/ngraph/runtime/ngvm/instruction/equal.hpp
+5
-4
exp.hpp
src/ngraph/runtime/ngvm/instruction/exp.hpp
+2
-3
floor.hpp
src/ngraph/runtime/ngvm/instruction/floor.hpp
+2
-3
greater.hpp
src/ngraph/runtime/ngvm/instruction/greater.hpp
+5
-4
greater_eq.hpp
src/ngraph/runtime/ngvm/instruction/greater_eq.hpp
+5
-4
less.hpp
src/ngraph/runtime/ngvm/instruction/less.hpp
+5
-4
less_eq.hpp
src/ngraph/runtime/ngvm/instruction/less_eq.hpp
+5
-4
log.hpp
src/ngraph/runtime/ngvm/instruction/log.hpp
+2
-3
maximum.hpp
src/ngraph/runtime/ngvm/instruction/maximum.hpp
+3
-3
minimum.hpp
src/ngraph/runtime/ngvm/instruction/minimum.hpp
+3
-3
multiply.hpp
src/ngraph/runtime/ngvm/instruction/multiply.hpp
+3
-3
negate.hpp
src/ngraph/runtime/ngvm/instruction/negate.hpp
+2
-3
not.hpp
src/ngraph/runtime/ngvm/instruction/not.hpp
+6
-5
not_equal.hpp
src/ngraph/runtime/ngvm/instruction/not_equal.hpp
+5
-4
power.hpp
src/ngraph/runtime/ngvm/instruction/power.hpp
+3
-3
select.hpp
src/ngraph/runtime/ngvm/instruction/select.hpp
+6
-5
sign.hpp
src/ngraph/runtime/ngvm/instruction/sign.hpp
+2
-3
sin.hpp
src/ngraph/runtime/ngvm/instruction/sin.hpp
+2
-3
sinh.hpp
src/ngraph/runtime/ngvm/instruction/sinh.hpp
+2
-3
sqrt.hpp
src/ngraph/runtime/ngvm/instruction/sqrt.hpp
+2
-3
subtract.hpp
src/ngraph/runtime/ngvm/instruction/subtract.hpp
+3
-3
tan.hpp
src/ngraph/runtime/ngvm/instruction/tan.hpp
+2
-3
tanh.hpp
src/ngraph/runtime/ngvm/instruction/tanh.hpp
+2
-3
utils.hpp
src/ngraph/runtime/ngvm/utils.hpp
+7
-3
No files found.
src/ngraph/runtime/kernel/convert.hpp
View file @
5e066523
...
...
@@ -20,7 +20,7 @@ namespace ngraph
{
namespace
kernel
{
template
<
typename
TI
,
typename
TO
>
template
<
typename
TI
,
typename
TO
>
void
convert
(
TI
*
arg
,
TO
*
out
,
size_t
count
)
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
...
...
src/ngraph/runtime/kernel/copy.hpp
View file @
5e066523
...
...
@@ -23,7 +23,7 @@ namespace ngraph
template
<
typename
T
>
void
copy
(
T
*
arg
,
T
*
out
,
size_t
count
)
{
memcpy
(
out
,
arg
,
sizeof
(
T
)
*
count
);
memcpy
(
out
,
arg
,
sizeof
(
T
)
*
count
);
}
}
}
...
...
src/ngraph/runtime/kernel/equal.hpp
View file @
5e066523
...
...
@@ -24,7 +24,8 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/greater.hpp
View file @
5e066523
...
...
@@ -21,7 +21,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
greater
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
greater
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/greater_eq.hpp
View file @
5e066523
...
...
@@ -21,7 +21,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
greater_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
greater_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/less_eq.hpp
View file @
5e066523
...
...
@@ -21,7 +21,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
less_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
less_eq
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/not.hpp
View file @
5e066523
...
...
@@ -20,7 +20,9 @@ namespace ngraph
{
namespace
kernel
{
void
logical_not
(
char
*
arg
,
char
*
out
,
size_t
count
)
// FIXME: temporararily char not bool
void
logical_not
(
char
*
arg
,
char
*
out
,
size_t
count
)
// FIXME: temporararily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/not_equal.hpp
View file @
5e066523
...
...
@@ -24,7 +24,10 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
not_equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
void
not_equal
(
T
*
arg0
,
T
*
arg1
,
char
*
out
,
size_t
count
)
// FIXME: temporarily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/kernel/power.hpp
View file @
5e066523
...
...
@@ -25,7 +25,7 @@ namespace ngraph
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
out
[
i
]
=
std
::
pow
(
arg0
[
i
],
arg1
[
i
]);
out
[
i
]
=
std
::
pow
(
arg0
[
i
],
arg1
[
i
]);
}
}
}
...
...
src/ngraph/runtime/kernel/select.hpp
View file @
5e066523
...
...
@@ -21,7 +21,11 @@ namespace ngraph
namespace
kernel
{
template
<
typename
T
>
void
select
(
char
*
arg0
,
T
*
arg1
,
T
*
arg2
,
T
*
out
,
size_t
count
)
// FIXME: temporararily char not bool
void
select
(
char
*
arg0
,
T
*
arg1
,
T
*
arg2
,
T
*
out
,
size_t
count
)
// FIXME: temporararily char not bool
{
for
(
size_t
i
=
0
;
i
<
count
;
i
++
)
{
...
...
src/ngraph/runtime/ngvm/external_function.cpp
View file @
5e066523
...
...
@@ -70,18 +70,34 @@
#include "ngraph/ops/tuple.hpp"
#include "ngraph/pass/manager.hpp"
#include "ngraph/pass/topological_sort.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_scalar.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_vector_colwise.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_vector_rowwise.hpp"
#include "ngraph/runtime/ngvm/eigen/concat_matrix.hpp"
#include "ngraph/runtime/ngvm/eigen/concat_vector.hpp"
#include "ngraph/runtime/ngvm/eigen/dot.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_mult.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_slice.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_transpose.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_vector_product.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_matrix_columns.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_matrix_rows.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_to_scalar.hpp"
#include "ngraph/runtime/ngvm/eigen/replace_matrix_slice.hpp"
#include "ngraph/runtime/ngvm/eigen/replace_vector_slice.hpp"
#include "ngraph/runtime/ngvm/eigen/scalar_tensor_product.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_matrix_columns.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_matrix_rows.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_to_scalar.hpp"
#include "ngraph/runtime/ngvm/eigen/vector_slice.hpp"
#include "ngraph/runtime/ngvm/external_function.hpp"
#include "ngraph/runtime/ngvm/instruction/abs.hpp"
#include "ngraph/runtime/ngvm/instruction/acos.hpp"
#include "ngraph/runtime/ngvm/instruction/add.hpp"
#include "ngraph/runtime/ngvm/instruction/asin.hpp"
#include "ngraph/runtime/ngvm/instruction/atan.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_scalar.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_vector_colwise.hpp"
#include "ngraph/runtime/ngvm/eigen/broadcast_vector_rowwise.hpp"
#include "ngraph/runtime/ngvm/instruction/call.hpp"
#include "ngraph/runtime/ngvm/instruction/ceiling.hpp"
#include "ngraph/runtime/ngvm/eigen/concat_matrix.hpp"
#include "ngraph/runtime/ngvm/eigen/concat_vector.hpp"
#include "ngraph/runtime/ngvm/instruction/constant.hpp"
#include "ngraph/runtime/ngvm/instruction/convert.hpp"
#include "ngraph/runtime/ngvm/instruction/copy.hpp"
...
...
@@ -89,19 +105,14 @@
#include "ngraph/runtime/ngvm/instruction/cos.hpp"
#include "ngraph/runtime/ngvm/instruction/cosh.hpp"
#include "ngraph/runtime/ngvm/instruction/divide.hpp"
#include "ngraph/runtime/ngvm/eigen/dot.hpp"
#include "ngraph/runtime/ngvm/instruction/equal.hpp"
#include "ngraph/runtime/ngvm/instruction/exp.hpp"
#include "ngraph/runtime/ngvm/instruction/floor.hpp"
#include "ngraph/runtime/ngvm/instruction/greater_eq.hpp"
#include "ngraph/runtime/ngvm/instruction/greater.hpp"
#include "ngraph/runtime/ngvm/instruction/
less
_eq.hpp"
#include "ngraph/runtime/ngvm/instruction/
greater
_eq.hpp"
#include "ngraph/runtime/ngvm/instruction/less.hpp"
#include "ngraph/runtime/ngvm/instruction/less_eq.hpp"
#include "ngraph/runtime/ngvm/instruction/log.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_mult.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_slice.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_transpose.hpp"
#include "ngraph/runtime/ngvm/eigen/matrix_vector_product.hpp"
#include "ngraph/runtime/ngvm/instruction/maximum.hpp"
#include "ngraph/runtime/ngvm/instruction/minimum.hpp"
#include "ngraph/runtime/ngvm/instruction/multiply.hpp"
...
...
@@ -109,26 +120,15 @@
#include "ngraph/runtime/ngvm/instruction/not.hpp"
#include "ngraph/runtime/ngvm/instruction/not_equal.hpp"
#include "ngraph/runtime/ngvm/instruction/power.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_matrix_columns.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_matrix_rows.hpp"
#include "ngraph/runtime/ngvm/eigen/reduce_to_scalar.hpp"
#include "ngraph/runtime/ngvm/eigen/replace_matrix_slice.hpp"
#include "ngraph/runtime/ngvm/eigen/replace_vector_slice.hpp"
#include "ngraph/runtime/ngvm/instruction/return.hpp"
#include "ngraph/runtime/ngvm/eigen/scalar_tensor_product.hpp"
#include "ngraph/runtime/ngvm/instruction/select.hpp"
#include "ngraph/runtime/ngvm/instruction/sign.hpp"
#include "ngraph/runtime/ngvm/instruction/sin.hpp"
#include "ngraph/runtime/ngvm/instruction/sinh.hpp"
#include "ngraph/runtime/ngvm/instruction/sqrt.hpp"
#include "ngraph/runtime/ngvm/instruction/subtract.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_matrix_columns.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_matrix_rows.hpp"
#include "ngraph/runtime/ngvm/eigen/sum_to_scalar.hpp"
#include "ngraph/runtime/ngvm/instruction/tan.hpp"
#include "ngraph/runtime/ngvm/instruction/tanh.hpp"
#include "ngraph/runtime/ngvm/eigen/vector_slice.hpp"
#include "ngraph/runtime/ngvm/external_function.hpp"
#include "ngraph/runtime/utils.hpp"
#include "ngraph/util.hpp"
...
...
@@ -325,7 +325,7 @@ std::vector<typename ET::type>
{ \
REGISTER_INSTRUCTION( \
op::ParameterizedConstant<T>, \
instruction::ConstantInstruction<T>,
\
instruction::ConstantInstruction<T>, \
std::vector<T::type>{ \
get_vector<T>(dynamic_cast<const op::ParameterizedConstant<T>*>(n)->get_value())}, \
out[0]); \
...
...
@@ -385,7 +385,7 @@ ExternalFunction::OpMap& ExternalFunction::get_op_map()
auto
c_value_strings
=
c
->
get_value_strings
();
#define M_REGISTER_POLYMORPHIC_CONSTANT(ET) \
ef->get_instructions()->push_back(make_shared<instruction::ConstantInstruction<ET>>(
\
ef->get_instructions()->push_back(make_shared<instruction::ConstantInstruction<ET>>( \
parse_string<typename ET::type>(c_value_strings), out[0]));
DO_ON_ELEMENT_TYPE
(
c_element_type
,
...
...
@@ -532,7 +532,7 @@ ExternalFunction::OpMap& ExternalFunction::get_op_map()
result_element_type == (TO::element_type())) \
{ \
ef->get_instructions()->push_back( \
make_shared<instruction::ConvertInstruction<TI, TO>>(in[0], out[0]));
\
make_shared<instruction::ConvertInstruction<TI, TO>>(in[0], out[0])); \
}
// End hacky macro
...
...
src/ngraph/runtime/ngvm/instruction/abs.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/abs.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
AbsInstruction
:
public
Instruction
{
public
:
AbsInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
AbsInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/acos.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/acos.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
AcosInstruction
:
public
Instruction
{
public
:
AcosInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
AcosInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/add.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/add.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
src/ngraph/runtime/ngvm/instruction/asin.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/asin.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
AsinInstruction
:
public
Instruction
{
public
:
AsinInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
AsinInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/atan.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/atan.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
AtanInstruction
:
public
Instruction
{
public
:
AtanInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
AtanInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/ceiling.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/ceiling.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
CeilingInstruction
:
public
Instruction
{
public
:
CeilingInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
CeilingInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/convert.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/convert.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -28,12 +28,11 @@ namespace ngraph
{
namespace
instruction
{
template
<
typename
ETI
,
typename
ETO
>
template
<
typename
ETI
,
typename
ETO
>
class
ConvertInstruction
:
public
Instruction
{
public
:
ConvertInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
ConvertInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
@@ -46,7 +45,7 @@ namespace ngraph
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg
);
kernel
::
convert
<
typename
ETI
::
type
,
typename
ETO
::
type
>
(
arg
,
out
,
count
);
kernel
::
convert
<
typename
ETI
::
type
,
typename
ETO
::
type
>
(
arg
,
out
,
count
);
}
protected
:
...
...
src/ngraph/runtime/ngvm/instruction/copy.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/copy.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
CopyInstruction
:
public
Instruction
{
public
:
CopyInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
CopyInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/cos.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/cos.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
CosInstruction
:
public
Instruction
{
public
:
CosInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
CosInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/cosh.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/cosh.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
CoshInstruction
:
public
Instruction
{
public
:
CoshInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
CoshInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/divide.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/divide.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
DivideInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/equal.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/equal.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
EqualInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/exp.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/exp.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
ExpInstruction
:
public
Instruction
{
public
:
ExpInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
ExpInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/floor.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/floor.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
FloorInstruction
:
public
Instruction
{
public
:
FloorInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
FloorInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/greater.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/greater.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
GreaterInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/greater_eq.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/greater_eq.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
GreaterEqInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/less.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/less.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
LessInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/less_eq.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/less_eq.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
LessEqInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/log.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/log.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
LogInstruction
:
public
Instruction
{
public
:
LogInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
LogInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/maximum.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/maximum.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
MaximumInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/minimum.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/minimum.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
MinimumInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/multiply.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/multiply.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
MultiplyInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/negate.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/negate.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
NegateInstruction
:
public
Instruction
{
public
:
NegateInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
NegateInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/not.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/not.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -31,8 +31,7 @@ namespace ngraph
class
NotInstruction
:
public
Instruction
{
public
:
NotInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
NotInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
@@ -40,8 +39,10 @@ namespace ngraph
virtual
void
execute
(
CallFrame
&
call_frame
)
const
override
{
char
*
arg
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_arg
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
arg
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_arg
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg
);
...
...
src/ngraph/runtime/ngvm/instruction/not_equal.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/not_equal.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
NotEqualInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
{
typename
ET
::
type
*
arg0
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg0
);
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
char
*
out
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_out
);
// FIXME: temporarily char not bool
size_t
count
=
get_tensor_element_count
(
call_frame
,
m_arg0
);
...
...
src/ngraph/runtime/ngvm/instruction/power.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/power.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
PowerInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/select.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/select.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,9 +33,9 @@ namespace ngraph
{
public
:
SelectInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
arg2
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
arg2
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_arg2
(
arg2
)
...
...
@@ -45,7 +45,8 @@ namespace ngraph
virtual
void
execute
(
CallFrame
&
call_frame
)
const
override
{
char
*
arg0
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_arg0
);
// FIXME: temporarily char not bool
char
*
arg0
=
get_tensor_data_ptr
<
element
::
Bool
>
(
call_frame
,
m_arg0
);
// FIXME: temporarily char not bool
typename
ET
::
type
*
arg1
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg1
);
typename
ET
::
type
*
arg2
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_arg2
);
typename
ET
::
type
*
out
=
get_tensor_data_ptr
<
ET
>
(
call_frame
,
m_out
);
...
...
src/ngraph/runtime/ngvm/instruction/sign.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/sign.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
SignInstruction
:
public
Instruction
{
public
:
SignInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
SignInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/sin.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/sin.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
SinInstruction
:
public
Instruction
{
public
:
SinInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
SinInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/sinh.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/sinh.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
SinhInstruction
:
public
Instruction
{
public
:
SinhInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
SinhInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/sqrt.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/sqrt.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
SqrtInstruction
:
public
Instruction
{
public
:
SqrtInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
SqrtInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/subtract.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/subtract.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -33,8 +33,8 @@ namespace ngraph
{
public
:
SubtractInstruction
(
const
TensorViewInfo
&
arg0
,
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
const
TensorViewInfo
&
arg1
,
const
TensorViewInfo
&
out
)
:
m_arg0
(
arg0
)
,
m_arg1
(
arg1
)
,
m_out
(
out
)
...
...
src/ngraph/runtime/ngvm/instruction/tan.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/tan.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
TanInstruction
:
public
Instruction
{
public
:
TanInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
TanInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/instruction/tanh.hpp
View file @
5e066523
...
...
@@ -16,8 +16,8 @@
#include "ngraph/runtime/kernel/tanh.hpp"
#include "ngraph/runtime/ngvm/call_frame.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/ngvm/instruction.hpp"
#include "ngraph/runtime/ngvm/utils.hpp"
#include "ngraph/runtime/tensor_view.hpp"
namespace
ngraph
...
...
@@ -32,8 +32,7 @@ namespace ngraph
class
TanhInstruction
:
public
Instruction
{
public
:
TanhInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
TanhInstruction
(
const
TensorViewInfo
&
arg
,
const
TensorViewInfo
&
out
)
:
m_arg
(
arg
)
,
m_out
(
out
)
{
...
...
src/ngraph/runtime/ngvm/utils.hpp
View file @
5e066523
...
...
@@ -33,14 +33,18 @@ namespace ngraph
class
CallFrame
;
template
<
typename
ET
>
typename
ET
::
type
*
get_tensor_data_ptr
(
CallFrame
&
call_frame
,
const
TensorViewInfo
&
tensor_view_info
)
typename
ET
::
type
*
get_tensor_data_ptr
(
CallFrame
&
call_frame
,
const
TensorViewInfo
&
tensor_view_info
)
{
return
call_frame
.
get_tensor_view_data
<
ET
>
(
tensor_view_info
.
get_index
());
}
size_t
get_tensor_element_count
(
CallFrame
&
call_frame
,
const
TensorViewInfo
&
tensor_view_info
)
size_t
get_tensor_element_count
(
CallFrame
&
call_frame
,
const
TensorViewInfo
&
tensor_view_info
)
{
return
tensor_view_info
.
get_layout
<
ngraph
::
descriptor
::
layout
::
DenseTensorViewLayout
>
()
->
get_size
();
return
tensor_view_info
.
get_layout
<
ngraph
::
descriptor
::
layout
::
DenseTensorViewLayout
>
()
->
get_size
();
}
}
}
...
...
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