nn#
Module containing native torch layer-specific symbolic information and implementations.
Classes
A symbolic parameter representing depth. |
- class SymDepth#
Bases:
SymbolA symbolic parameter representing depth.
- __init__(*args, max_depth, **kwargs)#
Constructor.
- is_skippable(idx)#
Return whether idx is skippable.
- Parameters:
idx (int)
- Return type:
bool
- property max_depth: int#
Return max depth.
- property min_depth: int#
Return min depth.
- set_skippable(idx, val)#
Set whether idx is skippable.
- Parameters:
idx (int)
val (bool)
- Return type:
None
- property skippable_idxs: list[int]#
Return sorted list of skippable idxs.