Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Tixxx committed Apr 27, 2021
1 parent 0f36bd0 commit 934b17e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion benchmark/super_resolution_model_zoo/karma.conf.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
2 changes: 1 addition & 1 deletion lib/backends/webgl/glsl-coordinate-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 1 addition & 2 deletions test/unittests/backends/webgl/test_depth_to_space.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 934b17e

Please sign in to comment.