FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Console/Program.cs at master · nhirschey/TensorFlow.NET · GitHub
nhirschey
/
TensorFlow.NET
Public
forked from
SciSharp/TensorFlow.NET
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Console
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (29 loc) · 969 Bytes
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Console
/
Program.cs
Copy path
File metadata and controls
37 lines (29 loc) · 969 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using
System
;
namespace
Tensorflow
{
class
Program
{
static
void
Main
(
string
[
]
args
)
{
// boot .net core 10.5M.
var
mm
=
new
MemoryMonitor
(
)
;
// warm up tensorflow.net 28.5M.
mm
.
WarmUp
(
)
;
var
cases
=
new
MemoryTestingCases
(
)
;
int
batchSize
=
1000
;
// explaination of constant
mm
.
Execute
(
10
,
100
*
batchSize
,
cases
.
Constant2x3
)
;
// 1 million float tensor 68M.
mm
.
Execute
(
10
,
100
*
batchSize
,
cases
.
Constant
)
;
// 100K float variable 84M.
mm
.
Execute
(
10
,
10
*
batchSize
,
cases
.
Variable
)
;
// 1 million math add 39M.
mm
.
Execute
(
10
,
100
*
batchSize
,
cases
.
MathAdd
)
;
// 100K gradient 44M.
mm
.
Execute
(
10
,
10
*
batchSize
,
cases
.
Gradient
)
;
// 95M
Console
.
WriteLine
(
"Finished."
)
;
Console
.
ReadLine
(
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL