Shortcuts

ApplyToKeys

class flash.core.data.transforms.ApplyToKeys(keys, *args)[source]

The ApplyToKeys class is an nn.Sequential which applies the given transforms to the given keys from the input. When a single key is given, a single value will be passed to the transforms. When multiple keys are given, the corresponding values will be passed to the transforms as a list.

Parameters
  • keys (Union[str, Sequence[str]]) – The key (str) or sequence of keys (Sequence[str]) to extract and forward to the transforms.

  • args – The transforms, passed to the nn.Sequential super constructor.

Read the Docs v: stable
Versions
latest
stable
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
docs-fix_typing
Downloads
pdf
html
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.