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
b7de39b4
Commit
b7de39b4
authored
Jul 23, 2019
by
Scott Cyphers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missed saving examples
parent
fdf451a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
abc.cpp
doc/examples/abc/abc.cpp
+1
-1
abc_operator.cpp
doc/examples/abc_operator/abc_operator.cpp
+1
-1
dist_mnist_mlp.cpp
doc/examples/mnist_mlp/dist_mnist_mlp.cpp
+2
-2
mnist_mlp.cpp
doc/examples/mnist_mlp/mnist_mlp.cpp
+2
-2
No files found.
doc/examples/abc/abc.cpp
View file @
b7de39b4
...
...
@@ -32,7 +32,7 @@ int main()
auto
t1
=
std
::
make_shared
<
op
::
Multiply
>
(
t0
,
c
);
// Make the function
auto
f
=
std
::
make_shared
<
Function
>
(
Node
Vector
{
t1
},
auto
f
=
std
::
make_shared
<
Function
>
(
Output
Vector
{
t1
},
ParameterVector
{
a
,
b
,
c
});
// Create the backend
...
...
doc/examples/abc_operator/abc_operator.cpp
View file @
b7de39b4
...
...
@@ -31,7 +31,7 @@ int main()
auto
t1
=
(
a
+
b
)
*
c
;
// Make the function
auto
f
=
std
::
make_shared
<
Function
>
(
Node
Vector
{
t1
},
auto
f
=
std
::
make_shared
<
Function
>
(
Output
Vector
{
t1
},
ParameterVector
{
a
,
b
,
c
});
// Get the backend
...
...
doc/examples/mnist_mlp/dist_mnist_mlp.cpp
View file @
b7de39b4
...
...
@@ -231,7 +231,7 @@ int main(int argc, char* argv[])
NodeMap
train_node_map
;
auto
train_function
=
clone_function
(
Function
(
Node
Vector
{
loss
,
softmax
,
W0_next
,
b0_next
,
W1_next
,
b1_next
},
Output
Vector
{
loss
,
softmax
,
W0_next
,
b0_next
,
W1_next
,
b1_next
},
ParameterVector
{
X
,
Y
,
N
,
learning_rate
,
W0
,
b0
,
W1
,
b1
}),
train_node_map
);
auto
train_exec
=
backend
->
compile
(
train_function
);
...
...
@@ -240,7 +240,7 @@ int main(int argc, char* argv[])
// X, W0, b0, W1, b1 -> softmax
NodeMap
inference_node_map
;
auto
inference_function
=
clone_function
(
Function
(
Node
Vector
{
softmax
},
ParameterVector
{
X
,
W0
,
b0
,
W1
,
b1
}),
Function
(
Output
Vector
{
softmax
},
ParameterVector
{
X
,
W0
,
b0
,
W1
,
b1
}),
inference_node_map
);
auto
inference_exec
=
backend
->
compile
(
inference_function
);
...
...
doc/examples/mnist_mlp/mnist_mlp.cpp
View file @
b7de39b4
...
...
@@ -218,7 +218,7 @@ int main(int argc, const char* argv[])
NodeMap
train_node_map
;
auto
train_function
=
clone_function
(
Function
(
Node
Vector
{
loss
,
softmax
,
W0_next
,
b0_next
,
W1_next
,
b1_next
},
Output
Vector
{
loss
,
softmax
,
W0_next
,
b0_next
,
W1_next
,
b1_next
},
ParameterVector
{
X
,
Y
,
N
,
learning_rate
,
W0
,
b0
,
W1
,
b1
}),
train_node_map
);
auto
train_exec
=
backend
->
compile
(
train_function
);
...
...
@@ -227,7 +227,7 @@ int main(int argc, const char* argv[])
// X, W0, b0, W1, b1 -> softmax
NodeMap
inference_node_map
;
auto
inference_function
=
clone_function
(
Function
(
Node
Vector
{
softmax
},
ParameterVector
{
X
,
W0
,
b0
,
W1
,
b1
}),
Function
(
Output
Vector
{
softmax
},
ParameterVector
{
X
,
W0
,
b0
,
W1
,
b1
}),
inference_node_map
);
auto
inference_exe
=
backend
->
compile
(
inference_function
);
...
...
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