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
5c8f9222
Unverified
Commit
5c8f9222
authored
Feb 14, 2018
by
Robert Kimball
Committed by
GitHub
Feb 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add curly braces in copy_with_new_args (#500)
parent
db595a3a
Hide whitespace changes
Inline
Side-by-side
Showing
53 changed files
with
110 additions
and
0 deletions
+110
-0
abs.hpp
src/ngraph/ops/abs.hpp
+2
-0
acos.hpp
src/ngraph/ops/acos.hpp
+2
-0
add.hpp
src/ngraph/ops/add.hpp
+2
-0
allreduce.hpp
src/ngraph/ops/allreduce.hpp
+2
-0
asin.hpp
src/ngraph/ops/asin.hpp
+2
-0
atan.hpp
src/ngraph/ops/atan.hpp
+2
-0
avg_pool.hpp
src/ngraph/ops/avg_pool.hpp
+4
-0
broadcast.hpp
src/ngraph/ops/broadcast.hpp
+2
-0
ceiling.hpp
src/ngraph/ops/ceiling.hpp
+2
-0
convert.hpp
src/ngraph/ops/convert.hpp
+2
-0
cos.hpp
src/ngraph/ops/cos.hpp
+2
-0
cosh.hpp
src/ngraph/ops/cosh.hpp
+2
-0
divide.hpp
src/ngraph/ops/divide.hpp
+2
-0
dot.hpp
src/ngraph/ops/dot.hpp
+2
-0
equal.hpp
src/ngraph/ops/equal.hpp
+2
-0
exp.hpp
src/ngraph/ops/exp.hpp
+2
-0
floor.hpp
src/ngraph/ops/floor.hpp
+2
-0
get_output_element.hpp
src/ngraph/ops/get_output_element.hpp
+2
-0
greater.hpp
src/ngraph/ops/greater.hpp
+2
-0
greater_eq.hpp
src/ngraph/ops/greater_eq.hpp
+2
-0
less.hpp
src/ngraph/ops/less.hpp
+2
-0
less_eq.hpp
src/ngraph/ops/less_eq.hpp
+2
-0
log.hpp
src/ngraph/ops/log.hpp
+2
-0
max_pool.hpp
src/ngraph/ops/max_pool.hpp
+4
-0
maximum.hpp
src/ngraph/ops/maximum.hpp
+2
-0
minimum.hpp
src/ngraph/ops/minimum.hpp
+2
-0
multiply.hpp
src/ngraph/ops/multiply.hpp
+2
-0
negative.hpp
src/ngraph/ops/negative.hpp
+2
-0
not.hpp
src/ngraph/ops/not.hpp
+2
-0
not_equal.hpp
src/ngraph/ops/not_equal.hpp
+2
-0
one_hot.hpp
src/ngraph/ops/one_hot.hpp
+2
-0
parameter.cpp
src/ngraph/ops/parameter.cpp
+2
-0
power.hpp
src/ngraph/ops/power.hpp
+2
-0
reduce.hpp
src/ngraph/ops/reduce.hpp
+2
-0
reduce_window.hpp
src/ngraph/ops/reduce_window.hpp
+2
-0
remainder.hpp
src/ngraph/ops/remainder.hpp
+2
-0
replace_slice.hpp
src/ngraph/ops/replace_slice.hpp
+2
-0
reshape.hpp
src/ngraph/ops/reshape.hpp
+2
-0
reverse.hpp
src/ngraph/ops/reverse.hpp
+2
-0
select.hpp
src/ngraph/ops/select.hpp
+2
-0
select_and_scatter.hpp
src/ngraph/ops/select_and_scatter.hpp
+2
-0
sign.hpp
src/ngraph/ops/sign.hpp
+2
-0
sin.hpp
src/ngraph/ops/sin.hpp
+2
-0
sinh.hpp
src/ngraph/ops/sinh.hpp
+2
-0
slice.hpp
src/ngraph/ops/slice.hpp
+2
-0
sqrt.hpp
src/ngraph/ops/sqrt.hpp
+2
-0
subtract.hpp
src/ngraph/ops/subtract.hpp
+2
-0
sum.hpp
src/ngraph/ops/sum.hpp
+2
-0
tan.hpp
src/ngraph/ops/tan.hpp
+2
-0
tanh.hpp
src/ngraph/ops/tanh.hpp
+2
-0
xla_get_tuple_element.hpp
src/ngraph/ops/xla_get_tuple_element.hpp
+2
-0
convert_layout.hpp
src/ngraph/runtime/cpu/ops/convert_layout.hpp
+2
-0
matmul_bias.cpp
src/ngraph/runtime/cpu/ops/matmul_bias.cpp
+2
-0
No files found.
src/ngraph/ops/abs.hpp
View file @
5c8f9222
...
...
@@ -45,7 +45,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Abs
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/acos.hpp
View file @
5c8f9222
...
...
@@ -45,7 +45,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Acos
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/add.hpp
View file @
5c8f9222
...
...
@@ -47,7 +47,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Add
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/allreduce.hpp
View file @
5c8f9222
...
...
@@ -32,7 +32,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
AllReduce
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/asin.hpp
View file @
5c8f9222
...
...
@@ -45,7 +45,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Asin
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/atan.hpp
View file @
5c8f9222
...
...
@@ -45,7 +45,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Atan
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/avg_pool.hpp
View file @
5c8f9222
...
...
@@ -69,7 +69,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
AvgPool
>
(
new_args
.
at
(
0
),
m_window_shape
,
...
...
@@ -110,7 +112,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
AvgPoolBackprop
*
avpn
=
new
AvgPoolBackprop
(
m_forward_arg_shape
,
new_args
.
at
(
0
),
...
...
src/ngraph/ops/broadcast.hpp
View file @
5c8f9222
...
...
@@ -40,7 +40,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Broadcast
>
(
new_args
.
at
(
0
),
m_shape
,
m_broadcast_axes
);
}
...
...
src/ngraph/ops/ceiling.hpp
View file @
5c8f9222
...
...
@@ -38,7 +38,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Ceiling
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/convert.hpp
View file @
5c8f9222
...
...
@@ -58,7 +58,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Convert
>
(
new_args
.
at
(
0
),
m_element_type
);
}
...
...
src/ngraph/ops/cos.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Cos
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/cosh.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Cosh
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/divide.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Divide
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/dot.hpp
View file @
5c8f9222
...
...
@@ -83,7 +83,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Dot
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
m_reduction_axes_count
);
}
...
...
src/ngraph/ops/equal.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Equal
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/exp.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Exp
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/floor.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Floor
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/get_output_element.hpp
View file @
5c8f9222
...
...
@@ -54,7 +54,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
GetOutputElement
>
(
new_args
.
at
(
0
),
m_n
);
}
...
...
src/ngraph/ops/greater.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Greater
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/greater_eq.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
GreaterEq
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/less.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Less
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/less_eq.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
LessEq
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/log.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Log
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/max_pool.hpp
View file @
5c8f9222
...
...
@@ -76,7 +76,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
MaxPool
>
(
new_args
.
at
(
0
),
m_window_shape
,
m_window_movement_strides
);
}
...
...
@@ -114,7 +116,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
MaxPoolBackprop
*
mpbp
=
new
MaxPoolBackprop
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
...
...
src/ngraph/ops/maximum.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Maximum
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/minimum.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Minimum
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/multiply.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Multiply
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/negative.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Negative
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/not.hpp
View file @
5c8f9222
...
...
@@ -47,7 +47,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Not
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/not_equal.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
NotEqual
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/one_hot.hpp
View file @
5c8f9222
...
...
@@ -56,7 +56,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
OneHot
>
(
new_args
.
at
(
0
),
m_shape
,
m_one_hot_axis
);
}
...
...
src/ngraph/ops/parameter.cpp
View file @
5c8f9222
...
...
@@ -30,7 +30,9 @@ op::Parameter::Parameter(const ngraph::element::Type& element_type, const Shape&
shared_ptr
<
Node
>
op
::
Parameter
::
copy_with_new_args
(
const
vector
<
shared_ptr
<
Node
>>&
new_args
)
const
{
if
(
new_args
.
size
()
!=
0
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
const
descriptor
::
Output
&
output
=
get_outputs
().
at
(
0
);
return
make_shared
<
Parameter
>
(
output
.
get_element_type
(),
output
.
get_shape
());
}
...
...
src/ngraph/ops/power.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Power
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/reduce.hpp
View file @
5c8f9222
...
...
@@ -100,7 +100,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Reduce
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
m_reduction_function
,
m_reduction_axes
);
}
...
...
src/ngraph/ops/reduce_window.hpp
View file @
5c8f9222
...
...
@@ -70,7 +70,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
ReduceWindow
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
m_reduction_function
,
...
...
src/ngraph/ops/remainder.hpp
View file @
5c8f9222
...
...
@@ -54,7 +54,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Remainder
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
};
...
...
src/ngraph/ops/replace_slice.hpp
View file @
5c8f9222
...
...
@@ -78,7 +78,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
ReplaceSlice
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
m_lower_bounds
,
m_upper_bounds
,
m_strides
);
}
...
...
src/ngraph/ops/reshape.hpp
View file @
5c8f9222
...
...
@@ -73,7 +73,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Reshape
>
(
new_args
.
at
(
0
),
m_input_order
,
m_output_shape
);
}
...
...
src/ngraph/ops/reverse.hpp
View file @
5c8f9222
...
...
@@ -56,7 +56,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Reverse
>
(
new_args
.
at
(
0
),
m_reversed_axes
);
}
...
...
src/ngraph/ops/select.hpp
View file @
5c8f9222
...
...
@@ -53,7 +53,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
3
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Select
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
new_args
.
at
(
2
));
}
...
...
src/ngraph/ops/select_and_scatter.hpp
View file @
5c8f9222
...
...
@@ -91,7 +91,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
3
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
SelectAndScatter
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
new_args
.
at
(
2
),
...
...
src/ngraph/ops/sign.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Sign
>
(
new_args
.
at
(
0
));
}
};
...
...
src/ngraph/ops/sin.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Sin
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/sinh.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Sinh
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/slice.hpp
View file @
5c8f9222
...
...
@@ -76,7 +76,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Slice
>
(
new_args
.
at
(
0
),
m_lower_bounds
,
m_upper_bounds
,
m_strides
);
}
...
...
src/ngraph/ops/sqrt.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Sqrt
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/subtract.hpp
View file @
5c8f9222
...
...
@@ -52,7 +52,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Subtract
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
}
...
...
src/ngraph/ops/sum.hpp
View file @
5c8f9222
...
...
@@ -89,7 +89,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Sum
>
(
new_args
.
at
(
0
),
m_reduction_axes
);
}
...
...
src/ngraph/ops/tan.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Tan
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/tanh.hpp
View file @
5c8f9222
...
...
@@ -50,7 +50,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
Tanh
>
(
new_args
.
at
(
0
));
}
...
...
src/ngraph/ops/xla_get_tuple_element.hpp
View file @
5c8f9222
...
...
@@ -55,7 +55,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
XLAGetTupleElement
>
(
new_args
.
at
(
0
),
m_n
);
}
...
...
src/ngraph/runtime/cpu/ops/convert_layout.hpp
View file @
5c8f9222
...
...
@@ -47,7 +47,9 @@ namespace ngraph
const
std
::
vector
<
std
::
shared_ptr
<
Node
>>&
new_args
)
const
override
{
if
(
new_args
.
size
()
!=
1
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
ConvertLayout
>
(
new_args
.
at
(
0
),
output_layout
);
}
...
...
src/ngraph/runtime/cpu/ops/matmul_bias.cpp
View file @
5c8f9222
...
...
@@ -20,7 +20,9 @@ std::shared_ptr<ngraph::Node> ngraph::op::MatmulBias::copy_with_new_args(
const
std
::
vector
<
std
::
shared_ptr
<
ngraph
::
Node
>>&
new_args
)
const
{
if
(
new_args
.
size
()
!=
2
)
{
throw
ngraph_error
(
"Incorrect number of new arguments"
);
}
return
std
::
make_shared
<
MatmulBias
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
new_args
.
at
(
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