提交 9b565a1b 编写于 作者: L lixinqi

replace nonascii


Former-commit-id: 9971477eeadf50363dfbaa872b9325c9446c7c94
上级 c8b21ac0
......@@ -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)
......
......@@ -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 cant 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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册