From d8bec4eb0b7361593e63c0931f51dc224f79abb2 Mon Sep 17 00:00:00 2001 From: Satya Jandhyala Date: Mon, 22 Jul 2024 15:14:34 -0700 Subject: [PATCH] Format --- js/common/test/type-tests.ts | 3 +-- .../jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts | 12 ++++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/js/common/test/type-tests.ts b/js/common/test/type-tests.ts index 8eb9e1cbeeb84..4c240c5a2be26 100644 --- a/js/common/test/type-tests.ts +++ b/js/common/test/type-tests.ts @@ -58,8 +58,7 @@ const prepareTestFileList = () => const compileTypeScriptFiles = (filepaths: string[]): readonly typescript.Diagnostic[] => { // TypeScript compiler options, base URL is reset to `TYPE_TESTS_DIR`. const compilerOptions = - JSON.parse(readFileSync(new URL(import.meta.url), 'utf-8')).compilerOptions as - typescript.CompilerOptions; + JSON.parse(readFileSync(new URL(import.meta.url), 'utf-8')).compilerOptions as typescript.CompilerOptions; compilerOptions.baseUrl = TYPE_TESTS_DIR; // Run TypeScript compiler diff --git a/js/web/lib/wasm/jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts b/js/web/lib/wasm/jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts index f428293add599..26e6ec0f46bc6 100644 --- a/js/web/lib/wasm/jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts +++ b/js/web/lib/wasm/jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts @@ -298,13 +298,17 @@ export const createConv3DNaiveProgramInfo = let xRCorner = xFRCCorner.y; let xCCorner = xFRCCorner.z; let xShapeY = ${ - isChannelsLast ? getElementAt('uniforms.x_shape', 1, x.rank) : getElementAt('uniforms.x_shape', 2, x.rank)}; + isChannelsLast ? getElementAt('uniforms.x_shape', 1, x.rank) : + getElementAt('uniforms.x_shape', 2, x.rank)}; let xShapeZ = ${ - isChannelsLast ? getElementAt('uniforms.x_shape', 2, x.rank) : getElementAt('uniforms.x_shape', 3, x.rank)}; + isChannelsLast ? getElementAt('uniforms.x_shape', 2, x.rank) : + getElementAt('uniforms.x_shape', 3, x.rank)}; let xShapeW = ${ - isChannelsLast ? getElementAt('uniforms.x_shape', 3, x.rank) : getElementAt('uniforms.x_shape', 4, x.rank)}; + isChannelsLast ? getElementAt('uniforms.x_shape', 3, x.rank) : + getElementAt('uniforms.x_shape', 4, x.rank)}; let xShapeU = ${ - isChannelsLast ? getElementAt('uniforms.x_shape', 4, x.rank) : getElementAt('uniforms.x_shape', 1, x.rank)}; + isChannelsLast ? getElementAt('uniforms.x_shape', 4, x.rank) : + getElementAt('uniforms.x_shape', 1, x.rank)}; let inputDepthNearestVec4 = (xShapeU / 4) * 4; let inputDepthVec4Remainder = xShapeU % 4;