Skip to content

Commit

Permalink
yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DameNianch committed Apr 6, 2024
1 parent ddb2a27 commit 91528a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tfjs-backend-cpu/src/kernels/CropAndResize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ImageScaler {
this.t2 = t2;
this.t1 = t1;
this.imageLength = imageLength;
this.cropLength = cropLength
this.cropLength = cropLength;
}

scaling(x: number): number {
Expand Down Expand Up @@ -85,8 +85,8 @@ export function cropAndResize(args: {
continue;
}

const heightScaler = new ImageScaler(y2, y1, imageHeight, cropHeight)
const widthScaler = new ImageScaler(x2, x1, imageWidth, cropWidth)
const heightScaler = new ImageScaler(y2, y1, imageHeight, cropHeight);
const widthScaler = new ImageScaler(x2, x1, imageWidth, cropWidth);

for (let y = 0; y < cropHeight; y++) {
const yInd: number = (cropHeight > 1) ?
Expand Down
2 changes: 1 addition & 1 deletion tfjs-core/src/ops/image/crop_and_resize_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describeWithFlags('cropAndResize', ALL_ENVS, () => {
});

it('halving-nearest', async () => {
const baseSize = 28
const baseSize = 28;
const image: tf.Tensor4D = tf.ones([1, 2 * baseSize, 1, 1]);
const boxes: tf.Tensor2D = tf.tensor2d([0, 0, 1, 1], [1, 4]);
const boxInd: tf.Tensor1D = tf.tensor1d([0], 'int32');
Expand Down

0 comments on commit 91528a2

Please sign in to comment.