Skip to main content

Module value

Module value 

Source
Expand description

The dynamically typed values that make up a Sample.

A WebDataset sample is a bag of files, and what a file decodes to depends on its extension: .txt becomes a string, .cls an integer, .json a tree, .npy a tensor, .jpg an image. Value is the union of those possibilities, plus Value::Custom as an escape hatch for decoders the library does not know about.

Enums§

Value
A value carried by a sample field.

Traits§

CustomValue
The trait objects accepted by Value::Custom.