Documentation ¶
Index ¶
- type ArrayWriter
- type CannedImageData
- type Cifar10
- type DataIterator
- func (d *DataIterator) ClassName() string
- func (d *DataIterator) Dtype() base.Dtype
- func (d *DataIterator) Init(self base.Object, symbol string, xdim1 int, ydim1 int, lshape []int, ...)
- func (d *DataIterator) Shape() []int
- func (d *DataIterator) Symbol() string
- func (d *DataIterator) X() backends.Tensor
- func (d *DataIterator) Y() backends.Tensor
- type DataSet
- type DataSetBase
- func (d *DataSetBase) Be() generators.Generator
- func (d *DataSetBase) GetIter(key string) *DataIterator
- func (d *DataSetBase) Index() int
- func (d *DataSetBase) Init(self DataSet, args base.Args)
- func (d *DataSetBase) SetIter(key string, iter *DataIterator)
- func (d *DataSetBase) TestIter() *DataIterator
- func (d *DataSetBase) TrainIter() *DataIterator
- func (d *DataSetBase) ValidIter() *DataIterator
- type DataWriter
- type Mnist
- type WriterBase
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) 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) Initialize ¶
func (d *Cifar10) Initialize()
type DataIterator ¶
type DataIterator struct { base.ObjectBase // contains filtered or unexported fields }
func NewDataIterator ¶
func (*DataIterator) ClassName ¶
func (d *DataIterator) ClassName() string
func (*DataIterator) Dtype ¶
func (d *DataIterator) Dtype() base.Dtype
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 (d *DataSetBase) Be() generators.Generator
func (*DataSetBase) GetIter ¶
func (d *DataSetBase) GetIter(key string) *DataIterator
func (*DataSetBase) Index ¶
func (d *DataSetBase) Index() int
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 Mnist ¶
type Mnist struct { DataSetBase // contains filtered or unexported fields }
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
Click to show internal directories.
Click to hide internal directories.