Deeploy.Targets.Generic.Platform.GenericPlatform

class Deeploy.Targets.Generic.Platform.GenericPlatform(engines=[GenericEngine(name='Generic', mappings=['Add', 'Conv', 'Concat', 'DebugPrint', 'Div', 'Flatten', 'Gather', 'Gemm', 'iGELU', 'Gelu', 'LayerNormalization', 'iLayerNorm', 'IntegerDiv', 'IntegerMean', 'Softmax', 'iSoftmax', 'ITAMax', 'ITAPartialMax', 'MatMul', 'MatMulInteger', 'MaxPool', 'Mul', 'Pad', 'ReduceMean', 'ReduceSum', 'Relu', 'RequantizediGELU', 'RequantShift', 'Reshape', 'RQIntegerDiv', 'Squeeze', 'Transpose', 'Unsqueeze', 'Slice', 'Quant', 'Dequant'])], variableBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericVariableBuffer'>, constantBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericConstantBuffer'>, structBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericStructBuffer'>, transientBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericTransientBuffer'>)

Bases: DeploymentPlatform

Methods

__init__(engines=[GenericEngine(name='Generic', mappings=['Add', 'Conv', 'Concat', 'DebugPrint', 'Div', 'Flatten', 'Gather', 'Gemm', 'iGELU', 'Gelu', 'LayerNormalization', 'iLayerNorm', 'IntegerDiv', 'IntegerMean', 'Softmax', 'iSoftmax', 'ITAMax', 'ITAPartialMax', 'MatMul', 'MatMulInteger', 'MaxPool', 'Mul', 'Pad', 'ReduceMean', 'ReduceSum', 'Relu', 'RequantizediGELU', 'RequantShift', 'Reshape', 'RQIntegerDiv', 'Squeeze', 'Transpose', 'Unsqueeze', 'Slice', 'Quant', 'Dequant'])], variableBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericVariableBuffer'>, constantBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericConstantBuffer'>, structBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericStructBuffer'>, transientBuffer=<class 'Deeploy.Targets.Generic.Platform.GenericTransientBuffer'>)

Initializes a new deployment platform

Parameters:
  • engines (List[DeploymentEngine]) – List of all available non-host engines

  • variableBuffer (Type[VariableBuffer]) – VariableBuffer subclass with correctly set allocation and deallocation templates

  • constantBuffer (Type[ConstantBuffer]) – ConstantBuffer subclass with correctly set allocation and deallocation templates

  • structBuffer (Type[StructBuffer]) – StructBuffer subclass with correctly set allocation and deallocation templates

  • transientBuffer (Type[TransientBuffer]) – TransientBuffer subclass with correctly set allocation and deallocation templates

__init__([engines, variableBuffer, ...])

Initializes a new deployment platform

Attributes

engines

A list of all available non-host engines

engines

A list of all available non-host engines

Type:

List[DeploymentEngine]