◆ _generate_permutations()
def polygraphy.util.format.FormatManager._generate_permutations |
( |
| ) |
|
|
private |
◆ determine_format()
def polygraphy.util.format.FormatManager.determine_format |
( |
|
shape | ) |
|
|
static |
Guesses the data format of a given shape.
Args:
shape (Tuple[int]): The shape, including batch dimension.
Returns:
DataFormat: The determined data format.
◆ permutation()
def polygraphy.util.format.FormatManager.permutation |
( |
|
old_format, |
|
|
|
new_format |
|
) |
| |
|
static |
◆ convert()
def polygraphy.util.format.FormatManager.convert |
( |
|
shape, |
|
|
|
new_format |
|
) |
| |
|
static |
Permutes a shape from one format to another.
Args:
shape (Tuple[int]): The shape to convert.
new_format (DataFormat): The desired format of the shape.
Returns:
Tuple[int]: A new shape in the correct format.
◆ DATA_PERMUTATIONS
The documentation for this class was generated from the following file: