Documentation ¶
Index ¶
- Variables
- func DumpTarOpener(opener *TarOpener) (io.Reader, error)
- func RandomString(size int, chars string) string
- type Category
- type Class
- type DataBuffer
- type Dataset
- type DefaultOpener
- type Directory
- type Error
- type File
- type InstanceID
- type Link
- type Links
- type LoaderFunc
- type Opener
- type TarDir
- type TarOpener
- type Tensor
Constants ¶
This section is empty.
Variables ¶
View Source
var LoaderFunctions = map[string]LoaderFunc{
"tensor": loadTensor,
"category": loadCategory,
"class": loadClass,
"links": loadLinks,
}
LoaderFunctions is.
View Source
var TypeExtensions = map[string]map[string]string{ "tensor": map[string]string{"default": ".ten.npy", "csv": ".ten.csv"}, "category": map[string]string{"default": ".cat.txt"}, "class": map[string]string{"default": ".class.txt"}, "links": map[string]string{"default": ".links.csv"}, }
TypeExtensions is.
Functions ¶
func DumpTarOpener ¶
DumpTarOpener converts a tar opener to a bytes reader.
func RandomString ¶
RandomString returns a random string of given length from a given set of characters.
Types ¶
type DataBuffer ¶
DataBuffer contains data that can be read and written.
type Dataset ¶
Dataset is.
type DefaultOpener ¶
type DefaultOpener struct{}
DefaultOpener is.
func (DefaultOpener) GetFile ¶
func (DefaultOpener) GetFile(root string, relPath string, readOnly bool, binary bool) (io.ReadWriteCloser, error)
GetFile is.
type LoaderFunc ¶
LoaderFunc is.
type Opener ¶
type Opener interface { GetFile(root string, relPath string, readOnly bool, binary bool) (io.ReadWriteCloser, error) GetDir(root string, relPath string, readOnly bool) ([]string, error) }
Opener is.
Click to show internal directories.
Click to hide internal directories.