forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_HookTimer.cs
More file actions
38 lines (34 loc) · 1.07 KB
/
_HookTimer.cs
File metadata and controls
38 lines (34 loc) · 1.07 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tensorflow.Training
{
/// <summary>
/// Base timer for determining when Hooks should trigger.
/// </summary>
public abstract class _HookTimer
{
/// <summary>
/// Resets the timer.
/// </summary>
public abstract void reset();
/// <summary>
/// Return true if the timer should trigger for the specified step.
/// </summary>
/// <param name="step"></param>
/// <returns></returns>
public abstract bool should_trigger_for_step(int step);
/// <summary>
/// Update the last triggered time and step number.
/// </summary>
/// <param name="step"></param>
public abstract void update_last_triggered_step(int step);
/// <summary>
/// Returns the last triggered time step or None if never triggered.
/// </summary>
/// <returns></returns>
public abstract int last_triggered_step();
}
}