otx.algorithms.common.adapters.mmdeploy#

Adapters for mmdeploy.

Functions

squeeze__default(ctx, g, self[, dim])

Register default symbolic function for squeeze.

is_mmdeploy_enabled()

Checks if the 'mmdeploy' Python module is installed and available for use.

otx.algorithms.common.adapters.mmdeploy.is_mmdeploy_enabled()[source]#

Checks if the ‘mmdeploy’ Python module is installed and available for use.

Returns:

True if ‘mmdeploy’ is installed, False otherwise.

Return type:

bool

Example

>>> is_mmdeploy_enabled()
True
otx.algorithms.common.adapters.mmdeploy.squeeze__default(ctx, g, self, dim=None)[source]#

Register default symbolic function for squeeze.

squeeze might be exported with IF node in ONNX, which is not supported in lots of backend.

mmdeploy 0.x version do not support opset13 version squeeze, therefore this function is for custom patch for supporting opset13 version squeeze.

If we adapt mmdeploy1.x version, then this function is no longer needed.