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
9560ffa1
Unverified
Commit
9560ffa1
authored
Mar 07, 2020
by
Yimei Sun
Committed by
GitHub
Mar 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace copy_with_new_args in A set of ops (#4424)
Co-authored-by:
Scott Cyphers
<
diyessi@users.noreply.github.com
>
parent
d6be21dc
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
43 additions
and
37 deletions
+43
-37
add.cpp
src/ngraph/op/add.cpp
+2
-2
add.hpp
src/ngraph/op/add.hpp
+4
-2
all.cpp
src/ngraph/op/all.cpp
+1
-1
all.hpp
src/ngraph/op/all.hpp
+2
-1
allreduce.cpp
src/ngraph/op/allreduce.cpp
+1
-1
allreduce.hpp
src/ngraph/op/allreduce.hpp
+2
-1
and.cpp
src/ngraph/op/and.cpp
+2
-2
and.hpp
src/ngraph/op/and.hpp
+4
-2
any.cpp
src/ngraph/op/any.cpp
+1
-1
any.hpp
src/ngraph/op/any.hpp
+1
-1
argmax.cpp
src/ngraph/op/argmax.cpp
+1
-2
argmax.hpp
src/ngraph/op/argmax.hpp
+1
-1
argmin.cpp
src/ngraph/op/argmin.cpp
+1
-1
argmin.hpp
src/ngraph/op/argmin.hpp
+1
-1
asin.cpp
src/ngraph/op/asin.cpp
+1
-1
asin.hpp
src/ngraph/op/asin.hpp
+1
-1
atan.cpp
src/ngraph/op/atan.cpp
+1
-1
atan.hpp
src/ngraph/op/atan.hpp
+1
-1
atan2.cpp
src/ngraph/op/atan2.cpp
+1
-1
atan2.hpp
src/ngraph/op/atan2.hpp
+2
-1
avg_pool.cpp
src/ngraph/op/avg_pool.cpp
+4
-4
avg_pool.hpp
src/ngraph/op/avg_pool.hpp
+4
-4
copy.cpp
test/copy.cpp
+4
-4
No files found.
src/ngraph/op/add.cpp
View file @
9560ffa1
...
...
@@ -31,7 +31,7 @@ op::v0::Add::Add(const Output<Node>& arg0,
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
v0
::
Add
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v0
::
Add
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
op
::
v0
::
Add
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
this
->
get_autob
());
...
...
@@ -82,7 +82,7 @@ bool op::v1::Add::visit_attributes(AttributeVisitor& visitor)
return
true
;
}
shared_ptr
<
Node
>
op
::
v1
::
Add
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v1
::
Add
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
op
::
v1
::
Add
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
this
->
get_autob
());
...
...
src/ngraph/op/add.hpp
View file @
9560ffa1
...
...
@@ -53,7 +53,8 @@ namespace ngraph
const
Output
<
Node
>&
arg1
,
const
AutoBroadcastSpec
&
auto_broadcast
=
AutoBroadcastSpec
());
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
bool
is_commutative
()
const
override
{
return
true
;
}
...
...
@@ -94,7 +95,8 @@ namespace ngraph
const
AutoBroadcastSpec
&
auto_broadcast
=
AutoBroadcastSpec
(
AutoBroadcastType
::
NUMPY
));
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
bool
is_commutative
()
const
override
{
return
true
;
}
size_t
get_version
()
const
override
{
return
1
;
}
...
...
src/ngraph/op/all.cpp
View file @
9560ffa1
...
...
@@ -34,7 +34,7 @@ op::All::All(const Output<Node>& arg, const Output<Node>& reduction_axes)
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
All
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
All
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
All
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
...
...
src/ngraph/op/all.hpp
View file @
9560ffa1
...
...
@@ -43,7 +43,8 @@ namespace ngraph
/// \param reduction_axes The axis positions (0-based) to be eliminated.
All
(
const
Output
<
Node
>&
arg
,
const
Output
<
Node
>&
reduction_axes
);
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
{
return
true
;
}
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
/// \return The default value for All.
virtual
std
::
shared_ptr
<
Node
>
get_default_value
()
const
override
;
...
...
src/ngraph/op/allreduce.cpp
View file @
9560ffa1
...
...
@@ -43,7 +43,7 @@ void op::AllReduce::validate_and_infer_types()
set_output_type
(
0
,
get_input_element_type
(
0
),
get_input_partial_shape
(
0
));
}
shared_ptr
<
Node
>
op
::
AllReduce
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
AllReduce
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
AllReduce
>
(
new_args
.
at
(
0
),
get_reduce_type
());
...
...
src/ngraph/op/allreduce.hpp
View file @
9560ffa1
...
...
@@ -37,7 +37,8 @@ namespace ngraph
void
validate_and_infer_types
()
override
;
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
reduction
::
Type
get_reduce_type
()
const
;
void
set_reduce_type
(
reduction
::
Type
reduce_type
);
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
...
...
src/ngraph/op/and.cpp
View file @
9560ffa1
...
...
@@ -35,7 +35,7 @@ bool op::v1::LogicalAnd::visit_attributes(AttributeVisitor& visitor)
return
true
;
}
shared_ptr
<
Node
>
op
::
v1
::
LogicalAnd
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v1
::
LogicalAnd
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v1
::
LogicalAnd
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
this
->
get_autob
());
...
...
@@ -57,7 +57,7 @@ bool op::v0::And::visit_attributes(AttributeVisitor& visitor)
return
true
;
}
shared_ptr
<
Node
>
op
::
v0
::
And
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v0
::
And
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v0
::
And
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
this
->
get_autob
());
...
...
src/ngraph/op/and.hpp
View file @
9560ffa1
...
...
@@ -51,7 +51,8 @@ namespace ngraph
const
AutoBroadcastSpec
&
auto_broadcast
=
AutoBroadcastSpec
(
AutoBroadcastType
::
NUMPY
));
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
bool
is_commutative
()
const
override
{
return
true
;
}
};
...
...
@@ -82,7 +83,8 @@ namespace ngraph
const
Output
<
Node
>&
arg1
,
const
AutoBroadcastSpec
&
auto_broadcast
=
AutoBroadcastSpec
());
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
bool
is_commutative
()
const
override
{
return
true
;
}
};
...
...
src/ngraph/op/any.cpp
View file @
9560ffa1
...
...
@@ -34,7 +34,7 @@ op::Any::Any(const Output<Node>& arg, const Output<Node>& reduction_axes)
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
Any
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
Any
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
Any
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
));
...
...
src/ngraph/op/any.hpp
View file @
9560ffa1
...
...
@@ -44,7 +44,7 @@ namespace ngraph
Any
(
const
Output
<
Node
>&
arg
,
const
Output
<
Node
>&
reduction_axes
);
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
{
return
true
;
}
/// \return The default value for Any.
virtual
std
::
shared_ptr
<
Node
>
get_default_value
()
const
override
;
...
...
src/ngraph/op/argmax.cpp
View file @
9560ffa1
...
...
@@ -34,9 +34,8 @@ bool op::ArgMax::visit_attributes(AttributeVisitor& visitor)
return
true
;
}
shared_ptr
<
Node
>
op
::
ArgMax
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
ArgMax
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
ArgMax
>
(
new_args
.
at
(
0
),
m_axis
,
this
->
get_element_type
());
}
...
...
src/ngraph/op/argmax.hpp
View file @
9560ffa1
...
...
@@ -43,7 +43,7 @@ namespace ngraph
const
element
::
Type
&
index_element_type
);
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
std
::
shared_ptr
<
Node
>
get_default_value
()
const
override
;
};
...
...
src/ngraph/op/argmin.cpp
View file @
9560ffa1
...
...
@@ -34,7 +34,7 @@ bool op::ArgMin::visit_attributes(AttributeVisitor& visitor)
return
true
;
}
shared_ptr
<
Node
>
op
::
ArgMin
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
ArgMin
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
ArgMin
>
(
new_args
.
at
(
0
),
m_axis
,
this
->
get_element_type
());
...
...
src/ngraph/op/argmin.hpp
View file @
9560ffa1
...
...
@@ -44,7 +44,7 @@ namespace ngraph
const
element
::
Type
&
index_element_type
);
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
std
::
shared_ptr
<
Node
>
get_default_value
()
const
override
;
};
...
...
src/ngraph/op/asin.cpp
View file @
9560ffa1
...
...
@@ -39,7 +39,7 @@ op::Asin::Asin(const Output<Node>& arg)
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
Asin
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
Asin
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
Asin
>
(
new_args
.
at
(
0
));
...
...
src/ngraph/op/asin.hpp
View file @
9560ffa1
...
...
@@ -45,7 +45,7 @@ namespace ngraph
Asin
(
const
Output
<
Node
>&
arg
);
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
{
return
true
;
}
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
...
...
src/ngraph/op/atan.cpp
View file @
9560ffa1
...
...
@@ -38,7 +38,7 @@ op::Atan::Atan(const Output<Node>& arg)
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
Atan
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
Atan
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
Atan
>
(
new_args
.
at
(
0
));
...
...
src/ngraph/op/atan.hpp
View file @
9560ffa1
...
...
@@ -46,7 +46,7 @@ namespace ngraph
Atan
(
const
Output
<
Node
>&
arg
);
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
{
return
true
;
}
protected
:
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
...
...
src/ngraph/op/atan2.cpp
View file @
9560ffa1
...
...
@@ -33,7 +33,7 @@ op::v0::Atan2::Atan2(const Output<Node>& y, const Output<Node>& x, const AutoBro
constructor_validate_and_infer_types
();
}
shared_ptr
<
Node
>
op
::
v0
::
Atan2
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v0
::
Atan2
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
Atan2
>
(
new_args
.
at
(
0
),
new_args
.
at
(
1
),
this
->
get_autob
());
...
...
src/ngraph/op/atan2.hpp
View file @
9560ffa1
...
...
@@ -45,7 +45,8 @@ namespace ngraph
Atan2
(
const
Output
<
Node
>&
y
,
const
Output
<
Node
>&
x
,
const
AutoBroadcastSpec
&
autob
=
AutoBroadcastSpec
());
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
;
std
::
shared_ptr
<
Node
>
clone_with_new_inputs
(
const
OutputVector
&
new_args
)
const
override
;
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
protected
:
...
...
src/ngraph/op/avg_pool.cpp
View file @
9560ffa1
...
...
@@ -228,7 +228,7 @@ void op::v0::AvgPool::set_ceil_mode(bool ceil_mode)
m_ceil_mode
=
ceil_mode
;
}
shared_ptr
<
Node
>
op
::
v0
::
AvgPool
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v0
::
AvgPool
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v0
::
AvgPool
>
(
new_args
.
at
(
0
),
...
...
@@ -372,7 +372,7 @@ void op::v0::AvgPoolBackprop::set_include_padding_in_avg_computation(
m_include_padding_in_avg_computation
=
include_padding_in_avg_computation
;
}
shared_ptr
<
Node
>
op
::
v0
::
AvgPoolBackprop
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v0
::
AvgPoolBackprop
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v0
::
AvgPoolBackprop
>
(
m_forward_arg_shape
,
...
...
@@ -581,7 +581,7 @@ void op::v1::AvgPool::set_rounding_type(op::RoundingType rounding_type)
m_rounding_type
=
rounding_type
;
}
shared_ptr
<
Node
>
op
::
v1
::
AvgPool
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v1
::
AvgPool
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v1
::
AvgPool
>
(
new_args
.
at
(
0
),
...
...
@@ -716,7 +716,7 @@ void op::v1::AvgPoolBackprop::set_exclude_pad(bool exclude_pad)
m_exclude_pad
=
exclude_pad
;
}
shared_ptr
<
Node
>
op
::
v1
::
AvgPoolBackprop
::
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
shared_ptr
<
Node
>
op
::
v1
::
AvgPoolBackprop
::
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
{
check_new_args_count
(
this
,
new_args
);
return
make_shared
<
v1
::
AvgPoolBackprop
>
(
new_args
.
at
(
0
),
...
...
src/ngraph/op/avg_pool.hpp
View file @
9560ffa1
...
...
@@ -134,7 +134,7 @@ namespace ngraph
void
validate_and_infer_types
()
override
;
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
OutputVector
&
deltas
)
override
;
...
...
@@ -190,7 +190,7 @@ namespace ngraph
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
const
Shape
&
get_forward_arg_shape
()
const
;
void
set_forward_arg_shape
(
const
Shape
&
forward_arg_shape
);
...
...
@@ -284,7 +284,7 @@ namespace ngraph
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
virtual
void
generate_adjoints
(
autodiff
::
Adjoints
&
adjoints
,
const
OutputVector
&
deltas
)
override
;
...
...
@@ -340,7 +340,7 @@ namespace ngraph
bool
visit_attributes
(
AttributeVisitor
&
visitor
)
override
;
virtual
std
::
shared_ptr
<
Node
>
c
opy_with_new_args
(
const
Node
Vector
&
new_args
)
const
override
;
c
lone_with_new_inputs
(
const
Output
Vector
&
new_args
)
const
override
;
const
Shape
get_forward_arg_shape
()
const
;
const
Shape
&
get_kernel
()
const
;
...
...
test/copy.cpp
View file @
9560ffa1
...
...
@@ -45,13 +45,13 @@ bool check_binary()
Shape
shape
{
1
};
auto
arg0
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
auto
arg1
=
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
);
Node
Vector
new_args
{
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
),
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
)};
Output
Vector
new_args
{
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
),
make_shared
<
op
::
Parameter
>
(
element
::
f32
,
shape
)};
auto
node
=
make_shared
<
OP
>
(
arg0
,
arg1
);
auto
new_node
=
node
->
copy_with_new_
arg
s
(
new_args
);
auto
new_node
=
node
->
copy_with_new_
input
s
(
new_args
);
return
(
nullptr
!=
new_node
)
&&
(
new_args
==
new_node
->
get_argument
s
());
return
(
nullptr
!=
new_node
)
&&
(
new_args
==
new_node
->
input_value
s
());
}
TEST
(
copy
,
abs
)
...
...
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