filter

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package filter provides implementation of Readers with filter functionality. Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyExamples

func EmptyExamples(reader core.TFExampleReader) core.TFExampleReader

Filter empty TFExamples from reader. If a TFExample has only __key__ entry, it is treated as an empty.

func EmptySamples

func EmptySamples(reader core.SampleReader) core.SampleReader

Filter empty Samples from reader. If a Sample has only __key__ entry, it is treated as an empty.

Types

type EmptySamplesReader

type EmptySamplesReader struct {
	Reader core.SampleReader
}

Filters empty Samples out of SampleReader

func (*EmptySamplesReader) Read

func (f *EmptySamplesReader) Read() (*core.Sample, error)

type EmptyTFExamplesReader

type EmptyTFExamplesReader struct {
	Reader core.TFExampleReader
}

Filters empty TFExamples out of TFExampleReader

func (*EmptyTFExamplesReader) Read

func (f *EmptyTFExamplesReader) Read() (*core.TFExample, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL