FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/test/TensorFlowNET.UnitTest/ImageTest.cs at master · killbacon/TensorFlow.NET · GitHub
killbacon
/
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.UnitTest
/
ImageTest.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (32 loc) · 891 Bytes
Breadcrumbs
TensorFlow.NET
/
test
/
TensorFlowNET.UnitTest
/
ImageTest.cs
Copy path
File metadata and controls
35 lines (32 loc) · 891 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
using
Microsoft
.
VisualStudio
.
TestTools
.
UnitTesting
;
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
IO
;
using
System
.
Text
;
using
Tensorflow
;
using
static
Tensorflow
.
Binding
;
namespace
TensorFlowNET
.
UnitTest
{
/// <summary>
/// Find more examples in https://www.programcreek.com/python/example/90444/tensorflow.read_file
/// </summary>
[
TestClass
]
public
class
ImageTest
{
string
imgPath
=
"shasta-daisy.jpg"
;
Tensor
contents
;
[
TestInitialize
]
public
void
Initialize
(
)
{
imgPath
=
Path
.
GetFullPath
(
imgPath
)
;
contents
=
tf
.
read_file
(
imgPath
)
;
}
[
Ignore
(
""
)
]
[
TestMethod
]
public
void
decode_image
(
)
{
var
img
=
tf
.
image
.
decode_image
(
contents
)
;
Assert
.
AreEqual
(
img
.
name
,
"decode_image/cond_jpeg/Merge:0"
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL