Bbaishanyanginit project
5f1c8c3b创建于 4 天前历史提交
{
    "operator": "HardSwish",
    "description": "MindSpore Lite 不支持 HardSwish,需用基础算子组合替代",
    "replacement": {
        "type": "composite",
        "formula": "x * min(max(x + 3, 0), 6) / 6",
        "ops": [
            "Add",
            "Clip",
            "Mul",
            "Div"
        ]
    },
    "onnx_script": "replace_hardswish_equivalent(input_path, output_path)",
    "error_pattern": "HardSwish|hardswish",
    "test_input": {
        "shape": [
            1,
            64,
            112,
            112
        ],
        "verify_output": true
    }
}