data

package
Version: v0.0.0-...-e22e665 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayWriter

type ArrayWriter struct {
	WriterBase
}

func NewArrayWriter

func NewArrayWriter(shape []int, dtype base.Dtype, name string) *ArrayWriter

func (*ArrayWriter) ClassName

func (w *ArrayWriter) ClassName() string

func (*ArrayWriter) Declare

func (w *ArrayWriter) Declare()

func (*ArrayWriter) Init

func (w *ArrayWriter) Init(
	self DataWriter,
	shape []int,
	dtype base.Dtype,
	name string)

func (*ArrayWriter) Initialize

func (w *ArrayWriter) Initialize()

type CannedImageData

type CannedImageData struct {
	DataSetBase
	// contains filtered or unexported fields
}

func NewCannedImageData

func NewCannedImageData(args ...interface{}) *CannedImageData

func (*CannedImageData) ClassName

func (d *CannedImageData) ClassName() string

func (*CannedImageData) Declare

func (d *CannedImageData) Declare()

func (*CannedImageData) Init

func (d *CannedImageData) Init(self DataSet, args base.Args)

func (*CannedImageData) Initialize

func (d *CannedImageData) Initialize()

type Cifar10

type Cifar10 struct {
	DataSetBase
	// contains filtered or unexported fields
}

func NewCifar10

func NewCifar10(args ...interface{}) *Cifar10

func (*Cifar10) ClassName

func (d *Cifar10) ClassName() string

func (*Cifar10) Declare

func (d *Cifar10) Declare()

func (*Cifar10) Init

func (d *Cifar10) Init(self DataSet, args base.Args)

func (*Cifar10) Initialize

func (d *Cifar10) Initialize()

type DataIterator

type DataIterator struct {
	base.ObjectBase
	// contains filtered or unexported fields
}

func NewDataIterator

func NewDataIterator(
	symbol string,
	xdim1 int,
	ydim1 int,
	lshape []int,
	dtype base.Dtype,
	name string) *DataIterator

func (*DataIterator) ClassName

func (d *DataIterator) ClassName() string

func (*DataIterator) Dtype

func (d *DataIterator) Dtype() base.Dtype

func (*DataIterator) Init

func (d *DataIterator) Init(
	self base.Object,
	symbol string,
	xdim1 int,
	ydim1 int,
	lshape []int,
	dtype base.Dtype,
	name string)

func (*DataIterator) Shape

func (d *DataIterator) Shape() []int

func (*DataIterator) Symbol

func (d *DataIterator) Symbol() string

func (*DataIterator) X

func (d *DataIterator) X() backends.Tensor

func (*DataIterator) Y

func (d *DataIterator) Y() backends.Tensor

type DataSet

type DataSet interface {
	base.Object
	TrainIter() *DataIterator
	ValidIter() *DataIterator
	TestIter() *DataIterator
	Declare()
	Initialize()
}

type DataSetBase

type DataSetBase struct {
	base.ObjectBase
	// contains filtered or unexported fields
}

func (*DataSetBase) Be

func (*DataSetBase) GetIter

func (d *DataSetBase) GetIter(key string) *DataIterator

func (*DataSetBase) Index

func (d *DataSetBase) Index() int

func (*DataSetBase) Init

func (d *DataSetBase) Init(self DataSet, args base.Args)

func (*DataSetBase) SetIter

func (d *DataSetBase) SetIter(key string, iter *DataIterator)

func (*DataSetBase) TestIter

func (d *DataSetBase) TestIter() *DataIterator

func (*DataSetBase) TrainIter

func (d *DataSetBase) TrainIter() *DataIterator

func (*DataSetBase) ValidIter

func (d *DataSetBase) ValidIter() *DataIterator

type DataWriter

type DataWriter interface {
	base.Object
	Symbol() string
	Shape() []int
	Dtype() base.Dtype
	Declare()
	Initialize()
}

type Mnist

type Mnist struct {
	DataSetBase
	// contains filtered or unexported fields
}

func NewMnist

func NewMnist(args ...interface{}) *Mnist

func (*Mnist) ClassName

func (d *Mnist) ClassName() string

func (*Mnist) Declare

func (d *Mnist) Declare()

func (*Mnist) Init

func (d *Mnist) Init(self DataSet, args base.Args)

func (*Mnist) Initialize

func (d *Mnist) Initialize()

type WriterBase

type WriterBase struct {
	base.ObjectBase
	// contains filtered or unexported fields
}

func (*WriterBase) Dtype

func (w *WriterBase) Dtype() base.Dtype

func (*WriterBase) Init

func (w *WriterBase) Init(
	self DataWriter,
	shape []int,
	dtype base.Dtype,
	name string)

func (*WriterBase) Shape

func (w *WriterBase) Shape() []int

func (*WriterBase) Symbol

func (w *WriterBase) Symbol() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL