DynamicBackend

class 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_tensor and compile:

  • create_dynamic_tensor will return a special DynamicTensor object whose shape can be updated after creation. Internally, DynamicTensor wraps static tensors managed by the wrapped backend.
  • compile will return a special DynamicExecutable object, which allows dynamic shapes to be supported via graph cloning.

This class is instantiated by ngraph::runtime::Backend::create.