Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsoulanille committed Apr 20, 2023
1 parent 029ec8f commit b1fe5eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tfjs-core/src/io/weights_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ export class CompositeArrayBuffer {
private bufferUniformSize?: number;
public readonly byteLength: number;

constructor(buffers: ArrayBuffer | ArrayBuffer[] | TypedArray | TypedArray[]) {
constructor(buffers: ArrayBuffer | ArrayBuffer[] | TypedArray
| TypedArray[]) {
// Normalize the `buffers` input to be `ArrayBuffer[]`.
if (!(buffers instanceof Array)) {
buffers = [buffers];
Expand Down
2 changes: 1 addition & 1 deletion tfjs-core/src/io/weights_loader_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ describe('CompositeArrayBuffer', () => {

it(`${buffersType}: slices from zero when start is negative`, () => {
expectArraysEqual(new Uint8Array(composite.slice(-4, 5)),
[0,1,2,3,4])
[0,1,2,3,4]);
});

it(`${buffersType}: slices to the end when end is greater than length`,
Expand Down

0 comments on commit b1fe5eb

Please sign in to comment.