diff --git a/ci/check/run_license_format.py b/ci/check/run_license_format.py index bd94583f7e5ef1b344e0c28b5320da1a49520f6e..c21fc6c61ded7279f98473580b998352674d0d05 100644 --- a/ci/check/run_license_format.py +++ b/ci/check/run_license_format.py @@ -33,7 +33,11 @@ def get_txt(path: str): def check_file(path): with open(path) as f: - content = f.read() + try: + content = f.read() + except Exception as e: + print(path) + raise e txt = get_txt(path) if content.startswith(txt) or (not content): return (True, content) diff --git a/oneflow/user/kernels/image_preprocess_kernels.cu b/oneflow/user/kernels/image_preprocess_kernels.cu index 23669404f522d40cdf7e3f11bfca2973b6e6f4cf..649c1992dc0d3a9bc823f787aaed6981c28002a4 100644 --- a/oneflow/user/kernels/image_preprocess_kernels.cu +++ b/oneflow/user/kernels/image_preprocess_kernels.cu @@ -105,7 +105,7 @@ __global__ void CropMirrorNormalizeGpuImpl(int32_t elem_cnt, const uint8_t* in_d float mean_val; float inv_std_val; const int32_t c = in_idx[3]; - // When the compiler can’t resolve array indices to constants it will put private arrays into + // When the compiler can't resolve array indices to constants it will put private arrays into // GPU local memory. Using local memory is slower than keeping array elements directly in // registers. if (c == 0) {