Source code for afe.ir.transform.base_transform
#########################################################
# Copyright (C) 2020 SiMa Technologies, Inc.
#
# This material is SiMa proprietary and confidential.
#
# This material may not be copied or distributed without
# the express prior written permission of SiMa.
#
# All rights reserved.
#########################################################
# Code owner: Joey Chou
#########################################################
from afe.ir.net import AwesomeNet
[docs]
class BaseTransform:
"""
The base class of all AwesomeNet Transforms
"""
def __call__(self, net: AwesomeNet) -> None:
"""
Executes the transformation
:param net: An AwesomeNet to be transformed
"""
raise NotImplementedError()