forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackpropInitialState.cs
More file actions
26 lines (24 loc) · 844 Bytes
/
Copy pathBackpropInitialState.cs
File metadata and controls
26 lines (24 loc) · 844 Bytes
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
using Tensorflow.Util;
namespace Tensorflow.Gradients
{
public class BackpropInitialState
{
public OpTape op_tape { get; set; }
/// <summary>
/// Map from tensor to how many references still exist for this tensor in
/// the tape.
/// </summary>
public UnorderedMap<long, long> tensor_usage_counts { get; set; }
/// <summary>
/// Maps from op ID to how many output tensors of this op still need to have
/// their gradients computed.
/// </summary>
public UnorderedMap<long, long> op_missing_tensor { get; set; }
public BackpropInitialState()
{
op_tape = new OpTape();
tensor_usage_counts = new UnorderedMap<long, long>();
op_missing_tensor = new UnorderedMap<long, long>();
}
}
}