Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Jul 22, 2024
1 parent 4f30b6c commit d8bec4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions js/common/test/type-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 8 additions & 4 deletions js/web/lib/wasm/jsep/webgpu/ops/3rd-party/conv3d_naive_webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8bec4e

Please sign in to comment.