Skip to content

Commit

Permalink
Fix double AnyTypedArray
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfooman committed Sep 14, 2023
1 parent 18bc805 commit d1e0e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/transformers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// @ts-nocheck

/**
* @file Entry point for the Transformers.js library. Only the exports from this file
* are available to the end user, and are grouped as follows:
Expand Down
4 changes: 2 additions & 2 deletions src/utils/tensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {


/**
* @typedef {import('./maths.js').AnyTypedArray} AnyTypedArray
* @typedef {import('./maths.js').AnyTypedArray | any[]} DataArray
*/

/** @type {Object} */
Expand All @@ -25,7 +25,7 @@ const ONNXTensor = ONNX.Tensor;
export class Tensor extends ONNXTensor {
/**
* Create a new Tensor or copy an existing Tensor.
* @param {[string, Array|AnyTypedArray, number[]]|[ONNXTensor]} args
* @param {[string, DataArray, number[]]|[ONNXTensor]} args
*/
constructor(...args) {
if (args[0] instanceof ONNX.Tensor) {
Expand Down

0 comments on commit d1e0e50

Please sign in to comment.