FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/test/TensorFlowNET.Examples/Program.cs at v0.8.0 · attackgithub/TensorFlow.NET · GitHub
attackgithub
TensorFlow.NET
Repository navigation
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
36 lines (30 loc) · 953 Bytes
Breadcrumbs
TensorFlow.NET
/
test
/
TensorFlowNET.Examples
/
Program.cs
Copy path
File metadata and controls
36 lines (30 loc) · 953 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
using
System
;
using
System
.
Linq
;
using
System
.
Reflection
;
namespace
TensorFlowNET
.
Examples
{
class
Program
{
static
void
Main
(
string
[
]
args
)
{
var
assembly
=
Assembly
.
GetEntryAssembly
(
)
;
foreach
(
Type
type
in
assembly
.
GetTypes
(
)
.
Where
(
x
=>
x
.
GetInterfaces
(
)
.
Contains
(
typeof
(
IExample
)
)
)
)
{
if
(
args
.
Length
>
0
&&
!
args
.
Contains
(
type
.
Name
)
)
continue
;
Console
.
WriteLine
(
$
"
{
DateTime
.
UtcNow
}
Starting
{
type
.
Name
}
"
)
;
var
example
=
(
IExample
)
Activator
.
CreateInstance
(
type
)
;
try
{
example
.
Run
(
)
;
}
catch
(
Exception
ex
)
{
Console
.
WriteLine
(
ex
)
;
}
Console
.
WriteLine
(
$
"
{
DateTime
.
UtcNow
}
Completed
{
type
.
Name
}
"
)
;
}
Console
.
ReadLine
(
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL