diff --git a/benchmark/super_resolution_model_zoo/karma.conf.js b/benchmark/super_resolution_model_zoo/karma.conf.js index c90a1eab..92c2c1fc 100644 --- a/benchmark/super_resolution_model_zoo/karma.conf.js +++ b/benchmark/super_resolution_model_zoo/karma.conf.js @@ -1,5 +1,4 @@ // Karma configuration -// Generated on Thu Nov 01 2018 14:03:26 GMT-0700 (Pacific Daylight Time) const path = require('path') function getMachineIpAddress() { var os = require('os'); diff --git a/lib/backends/webgl/glsl-coordinate-lib.ts b/lib/backends/webgl/glsl-coordinate-lib.ts index 2ae109aa..311c753f 100644 --- a/lib/backends/webgl/glsl-coordinate-lib.ts +++ b/lib/backends/webgl/glsl-coordinate-lib.ts @@ -478,7 +478,7 @@ export class CoordsGlslLib extends GlslLib { ivec5 getOutputCoords() { ivec2 resTexRC = ivec2(TexCoords.xy * vec2(${texShape[0]}, ${texShape[1]})); - int index = resTexRC.y * ${texShape[1]} + resTexRC.x; + int index = resTexRC.y * ${texShape[0]} + resTexRC.x; ${coordsFromIndexSnippet} return ivec5(r, c, d, d2, d3); } diff --git a/test/unittests/backends/webgl/test_depth_to_space.ts b/test/unittests/backends/webgl/test_depth_to_space.ts index b5e2c483..5795f6aa 100644 --- a/test/unittests/backends/webgl/test_depth_to_space.ts +++ b/test/unittests/backends/webgl/test_depth_to_space.ts @@ -56,8 +56,7 @@ describe('#UnitTest# - unpacked WebGLDepthToSpace - Tensor WebGLDepthToSpace', ( const inputTensorShape = testData.inputShape; const inputTextureShape = testData.inputTextureShape; - // create input data and tensor. The input data will be used to verify if the output tensor contains the - // same value but possibly different order depending on our packing algorithm. + // create input data and tensor. const inputData = testData.rawInput ? testData.rawInput : createAscendingArray(elementCount); const inputTensorA = new Tensor(inputTensorShape, 'float32', undefined, undefined, inputData);