DynamicBackend: public Backend¶
Wrapper class used to provide dynamic tensor support on backends that otherwise do not support dynamic tensors.
The main function of this class is to intercept
create_dynamic_tensorwill return a special
DynamicTensorobject whose shape can be updated after creation. Internally,
DynamicTensorwraps static tensors managed by the wrapped backend.
compilewill return a special
DynamicExecutableobject, which allows dynamic shapes to be supported via graph cloning.
This class is instantiated by