FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Debugging/DebugImpl.cs at master · ehtick/TensorFlow.NET · GitHub
ehtick
/
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.Core
/
Debugging
/
DebugImpl.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (47 loc) · 1.54 KB
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Debugging
/
DebugImpl.cs
Copy path
File metadata and controls
50 lines (47 loc) · 1.54 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
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Text
;
using
static
Tensorflow
.
Binding
;
namespace
Tensorflow
.
Debugging
{
public
class
DebugImpl
{
/// <summary>
/// Set if device placements should be logged.
/// </summary>
/// <param name="enabled"> Whether to enabled device placement logging.</param>
public
void
set_log_device_placement
(
bool
enabled
)
=>
tf
.
Context
.
log_device_placement
(
enabled
)
;
/// <summary>
/// Assert the condition `x == y` holds element-wise.
/// </summary>
/// <typeparam name="T1"></typeparam>
/// <typeparam name="T2"></typeparam>
/// <param name="t1"></param>
/// <param name="t2"></param>
/// <param name="data"></param>
/// <param name="message"></param>
/// <param name="name"></param>
/// <returns></returns>
public
Tensor
assert_equal
<
T1
,
T2
>
(
T1
t1
,
T2
t2
,
object
[
]
data
=
null
,
string
message
=
null
,
string
name
=
null
)
=>
check_ops
.
assert_equal
(
t1
,
t2
,
data
:
data
,
message
:
message
,
name
:
name
)
;
public
Tensor
assert_greater_equal
<
T1
,
T2
>
(
Tensor
x
,
Tensor
y
,
object
[
]
data
=
null
,
string
message
=
null
,
string
name
=
null
)
=>
check_ops
.
assert_greater_equal
(
x
,
y
,
data
:
data
,
message
:
message
,
name
:
name
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL