def METHOD_NAME(program_config, predictor_config):
    if "nvidia_tensorrt" in self.get_nnadapter_device_name():
        in_shape = program_config.inputs["input_data"].shape
        w_shape = program_config.weights["weights_data"].shape
        if len(in_shape) != 4 \
            or w_shape[0] != in_shape[2] * in_shape[3]:
            return True
        if "bias_data" in program_config.weights:
            b_shape = program_config.weights["bias_data"].shape
            if b_shape[0] != w_shape[1]:
                return True