forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSessionRunHook.cs
More file actions
46 lines (42 loc) · 1.19 KB
/
Copy pathSessionRunHook.cs
File metadata and controls
46 lines (42 loc) · 1.19 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
namespace Tensorflow.Training
{
/// <summary>
/// Hook to extend calls to MonitoredSession.run().
/// </summary>
public abstract class SessionRunHook
{
/// <summary>
/// Called once before using the session.
/// </summary>
public virtual void begin()
{
}
/// <summary>
/// Called when new TensorFlow session is created.
/// </summary>
/// <param name="session"></param>
/// <param name="coord"></param>
public virtual void after_create_session(Session session, Coordinator coord)
{
}
/// <summary>
/// Called before each call to run().
/// </summary>
/// <param name="run_context"></param>
public virtual void before_run(SessionRunContext run_context)
{
}
/// <summary>
/// Called after each call to run().
/// </summary>
public virtual void after_run(SessionRunContext run_context, SessionRunValues run_values)
{
}
/// <summary>
/// Called at the end of session.
/// </summary>
public virtual void end(Session session)
{
}
}
}