FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/test/TensorFlowNET.Examples/Program.cs at master · weinre/TensorFlow.NET · GitHub
weinre
/
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
/
test
/
TensorFlowNET.Examples
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
56 lines (49 loc) · 1.91 KB
Breadcrumbs
TensorFlow.NET
/
test
/
TensorFlowNET.Examples
/
Program.cs
Copy path
File metadata and controls
56 lines (49 loc) · 1.91 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Drawing
;
using
System
.
Linq
;
using
System
.
Reflection
;
using
Console
=
Colorful
.
Console
;
namespace
TensorFlowNET
.
Examples
{
class
Program
{
static
void
Main
(
string
[
]
args
)
{
var
assembly
=
Assembly
.
GetEntryAssembly
(
)
;
var
errors
=
new
List
<
string
>
(
)
;
var
success
=
new
List
<
string
>
(
)
;
var
disabled
=
new
List
<
string
>
(
)
;
var
examples
=
assembly
.
GetTypes
(
)
.
Where
(
x
=>
x
.
GetInterfaces
(
)
.
Contains
(
typeof
(
IExample
)
)
)
.
Select
(
x
=>
(
IExample
)
Activator
.
CreateInstance
(
x
)
)
.
OrderBy
(
x
=>
x
.
Priority
)
.
ToArray
(
)
;
foreach
(
IExample
example
in
examples
)
{
if
(
args
.
Length
>
0
&&
!
args
.
Contains
(
example
.
Name
)
)
continue
;
Console
.
WriteLine
(
$
"
{
DateTime
.
UtcNow
}
Starting
{
example
.
Name
}
"
,
Color
.
White
)
;
try
{
if
(
example
.
Enabled
)
if
(
example
.
Run
(
)
)
success
.
Add
(
$
"Example
{
example
.
Priority
}
:
{
example
.
Name
}
"
)
;
else
errors
.
Add
(
$
"Example
{
example
.
Priority
}
:
{
example
.
Name
}
"
)
;
else
disabled
.
Add
(
$
"Example
{
example
.
Priority
}
:
{
example
.
Name
}
"
)
;
}
catch
(
Exception
ex
)
{
Console
.
WriteLine
(
ex
)
;
}
Console
.
WriteLine
(
$
"
{
DateTime
.
UtcNow
}
Completed
{
example
.
Name
}
"
,
Color
.
White
)
;
}
success
.
ForEach
(
x
=>
Console
.
WriteLine
(
$
"
{
x
}
is OK!"
,
Color
.
Green
)
)
;
disabled
.
ForEach
(
x
=>
Console
.
WriteLine
(
$
"
{
x
}
is Disabled!"
,
Color
.
Tan
)
)
;
errors
.
ForEach
(
x
=>
Console
.
WriteLine
(
$
"
{
x
}
is Failed!"
,
Color
.
Red
)
)
;
Console
.
ReadLine
(
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL