using System; using System.Collections.Generic; using System.Text; using Tensorflow.Util; using static Tensorflow.tensorflow; namespace Tensorflow.Gradients { public class BackpropInitialState { public OpTape op_tape { get; set; } /// /// Map from tensor ID to how many references still exist for this tensor in /// the tape. /// public UnorderedMap tensor_usage_counts { get; set; } /// /// Maps from op ID to how many output tensors of this op still need to have /// their gradients computed. /// public UnorderedMap op_missing_tensor { get; set; } public BackpropInitialState() { op_tape = new OpTape(); tensor_usage_counts = new UnorderedMap(); op_missing_tensor = new UnorderedMap(); } } }