Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventCallbackBase ¶ added in v0.0.2
type Ingester ¶
type Ingester interface { // FetchUpdates fetches updates from the TFRecord file incrementally. // User should call this function periodically in order to get the latest updates. // return error means unexpected file content, user should close the Ingester. // Notes: FetchUpdates is not thread-safe. // Return value is the number of events added to the run. FetchUpdates(ctx context.Context) (int, error) Close() error GetRun() *Run }
Ingester is an interface for ingesting TFRecord file
type Run ¶
type Run struct { Name string Scalars map[string]*ScalarEvents Texts map[string]*TextEvents }
func (*Run) AddScalarEvent ¶
type ScalarEventCallback ¶
type ScalarEventCallback = EventCallbackBase[float32]
type ScalarEvents ¶
type TextEventCallback ¶ added in v0.0.2
type TextEventCallback = EventCallbackBase[string]
type TextEvents ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.