def METHOD_NAME(program_config, predictor_config):
    target_type = predictor_config.target()
    data_format = program_config.ops[0].attrs["data_format"]
    if target_type in [TargetType.OpenCL, TargetType.Metal
                       ] and data_format == "NHWC":
        return True