def test_fp16_overflow(self):
        """
        Input graph:
            input -> clip(-77777, 88888) -> output

        Nothing gets changed due to fp16 overflow
        """

        SHAPE = (2, 1, 3, 7, 5)

        @mb.program(input_specs=[mb.TensorSpec(shape=SHAPE)])
        def prog(x):
            y = mb.clip(x=x, alpha=np.float32(-77777), beta=np.float32(88888))
            return y

        assert get_op_types_in_program(prog) == ["clip"]

        apply_pass_and_basic_check(prog, "common::add_fp16_cast")

        assert get_op_types_in_program(prog) == ["clip"]

        Input graph:
            input -> clip(-77777, 88888) -> output

        Nothing gets changed due to fp16 overflow
        
coremltools/converters/mil/mil/passes/tests/test_quantization_passes.py