forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugImpl.cs
More file actions
50 lines (47 loc) · 1.54 KB
/
DebugImpl.cs
File metadata and controls
50 lines (47 loc) · 1.54 KB
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);
}
}