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
fa808c91
Commit
fa808c91
authored
Dec 17, 2019
by
Evgenya Stepyreva
Committed by
Scott Cyphers
Dec 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ TI ] TensorIterator m_num_iterations fix (#4070)
* [ TI ] TensorIterator m_num_iterations fix * style
parent
0d0bd8de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
tensor_iterator.cpp
src/ngraph/op/tensor_iterator.cpp
+1
-0
tensor_iterator.hpp
src/ngraph/op/tensor_iterator.hpp
+5
-0
No files found.
src/ngraph/op/tensor_iterator.cpp
View file @
fa808c91
...
...
@@ -468,6 +468,7 @@ std::shared_ptr<Node> op::TensorIterator::copy_with_new_args(const NodeVector& n
}
}
op
->
m_num_iterations
=
m_num_iterations
;
auto
func
=
std
::
make_shared
<
Function
>
(
m_body
->
get_results
(),
m_body
->
get_parameters
());
auto
spec_func
=
specialize_function
(
func
,
types
,
new_shapes
,
std
::
vector
<
void
*>
(
new_args
.
size
(),
nullptr
),
false
,
true
);
...
...
src/ngraph/op/tensor_iterator.hpp
View file @
fa808c91
...
...
@@ -300,6 +300,11 @@ namespace ngraph
void
revalidate_and_infer_types_for_body_ops
();
int64_t
get_num_iterations
()
const
{
return
m_num_iterations
;
}
void
set_num_iterations
(
int64_t
num_iterations
)
{
m_num_iterations
=
num_iterations
;
}
private
:
// Find an input corresponding to value, adding one if necessary.
Input
<
Node
>
input_for_value
(
const
Output
<
Node
>&
value
);
...
...
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