dgs.utils.state¶
Definitions and helpers for a state.
Contains the custom collate functions to combine a list of States into a single one, keeping custom tensor subtypes intact.
Module Functions
|
Collate a batch of bounding boxes into a single one. |
|
Collate a batch of devices into a single device. |
|
Collate function used to combine the data returned in the format of a class:ImageHistoryDataset. |
|
Collate function used to not concatenate a batch of States. |
|
Collate function for multiple States, to flatten / squeeze the shapes and keep the tv_tensors classes. |
|
Collate a batch of tensors into a single one. |
|
Collate a batch of tv_tensors into a batched version of it. |
|
Given a single name of an attribute or property, return a function, that gets the respective values from a given |
|
Given a list of attribute names, return a function, that gets those attributes from a given |
Module Classes
|
Class for storing one or multiple samples of data as a 'State'. |