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
3c27cc26
Unverified
Commit
3c27cc26
authored
Sep 24, 2019
by
Scott Cyphers
Committed by
GitHub
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add provenance for ops constructed in op constructors. (#3663)
parent
7cbacf70
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
generate_mask.cpp
src/ngraph/op/experimental/generate_mask.cpp
+4
-0
lrn.cpp
src/ngraph/op/lrn.cpp
+1
-0
topk.cpp
src/ngraph/op/topk.cpp
+1
-0
No files found.
src/ngraph/op/experimental/generate_mask.cpp
View file @
3c27cc26
...
...
@@ -54,6 +54,10 @@ op::GenerateMask::GenerateMask(const Output<Node>& training,
make_shared
<
op
::
Constant
>
(
element
::
i32
,
Shape
{},
std
::
vector
<
int32_t
>
{
use_seed
}));
set_argument
(
3
,
make_shared
<
op
::
Constant
>
(
element
::
u64
,
Shape
{},
std
::
vector
<
uint64_t
>
{
seed
}));
set_argument
(
4
,
make_shared
<
op
::
Constant
>
(
element
::
f64
,
Shape
{},
std
::
vector
<
double
>
{
prob
}));
add_provenance_group_member
(
input_value
(
1
).
get_node_shared_ptr
());
add_provenance_group_member
(
input_value
(
2
).
get_node_shared_ptr
());
add_provenance_group_member
(
input_value
(
3
).
get_node_shared_ptr
());
add_provenance_group_member
(
input_value
(
4
).
get_node_shared_ptr
());
constructor_validate_and_infer_types
();
}
...
...
src/ngraph/op/lrn.cpp
View file @
3c27cc26
...
...
@@ -26,6 +26,7 @@ const string op::LRN::type_name{"LRN"};
op
::
LRN
::
LRN
(
const
Output
<
Node
>&
arg
,
double
alpha
,
double
beta
,
double
bias
,
size_t
size
)
:
LRN
(
arg
,
op
::
Constant
::
create
(
element
::
i64
,
Shape
{
1
},
{
1
}),
alpha
,
beta
,
bias
,
size
)
{
add_provenance_group_member
(
input_value
(
1
).
get_node_shared_ptr
());
}
op
::
LRN
::
LRN
(
const
Output
<
Node
>&
arg
,
...
...
src/ngraph/op/topk.cpp
View file @
3c27cc26
...
...
@@ -38,6 +38,7 @@ op::TopK::TopK(const Output<Node>& arg,
,
m_compute_max
(
compute_max
)
,
m_sort
(
sort
)
{
add_provenance_group_member
(
input_value
(
1
).
get_node_shared_ptr
());
constructor_validate_and_infer_types
();
}
...
...
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