mirror of
https://github.com/open-mmlab/mmrazor.git
synced 2025-06-03 15:02:54 +08:00
* fix bug in placer holder * remove redundent comment Co-authored-by: liukai <your_email@abc.example>
19 lines
435 B
Python
19 lines
435 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
import unittest
|
|
|
|
import pytest
|
|
|
|
from mmrazor.utils import get_placeholder
|
|
|
|
|
|
class TestPlaceholder(unittest.TestCase):
|
|
|
|
def test_placeholder(self):
|
|
holder = get_placeholder('test')
|
|
with pytest.raises(ImportError):
|
|
holder()
|
|
from mmrazor.models.architectures.dynamic_ops import DynamicMixin
|
|
|
|
class tmp(holder, DynamicMixin):
|
|
pass
|