From a166e5b4314ae59c17f0d070b45cec6e48a443d1 Mon Sep 17 00:00:00 2001 From: crowlkats Date: Sat, 23 Jul 2022 12:37:49 +0200 Subject: [PATCH] dont use mod as it is a reserved keyword --- tfjs-backend-webgpu/src/webgpu_program.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfjs-backend-webgpu/src/webgpu_program.ts b/tfjs-backend-webgpu/src/webgpu_program.ts index eb3561739e9..c4cc6b4e7d9 100644 --- a/tfjs-backend-webgpu/src/webgpu_program.ts +++ b/tfjs-backend-webgpu/src/webgpu_program.ts @@ -352,8 +352,8 @@ const commonSnippet = ` fn idiv(a: i32, b: i32, sign: f32) -> i32 { var res: i32 = a / b; - let mod: i32 = a % b; - if (sign < 0. && mod != 0) { + let modulo: i32 = a % b; + if (sign < 0. && modulo != 0) { res = res - 1; } return res;