Documentation ¶
Index ¶
Constants ¶
View Source
const GRAY string = "gray"
GRAY color
View Source
const RGB string = "rgb"
RGB color
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageLoader ¶
type ImageLoader struct {
// contains filtered or unexported fields
}
ImageLoader struct
func New ¶
func New(fn string, vocab map[string]int, trans *transforms.ComposeTransformer, mbSize, bufSize int, seed int64, pinMemory bool, colorSpace string) (*ImageLoader, error)
New returns an ImageLoader
func (*ImageLoader) Err ¶
func (p *ImageLoader) Err() error
Err returns the error during the scan process, if there is any. io.EOF is not considered an error.
Click to show internal directories.
Click to hide internal directories.