idmission-web-sdk 1.0.192 → 1.0.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
48
48
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
49
49
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
50
50
 
51
- var webSdkVersion = '1.0.192';
51
+ var webSdkVersion = '1.0.193';
52
52
 
53
53
  function getPlatform() {
54
54
  if (typeof window === 'undefined') return;
@@ -9032,6 +9032,7 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
9032
9032
  _e.label = 1;
9033
9033
  case 1:
9034
9034
  _e.trys.push([1, 7, 8, 9]);
9035
+ console.log(' Tensors before:', tf__namespace.memory().numTensors);
9035
9036
  tf__namespace.engine().startScope();
9036
9037
  tfImg = tf__namespace.browser.fromPixels(image);
9037
9038
  if (logPredictions) console.time('resize');
@@ -9093,6 +9094,8 @@ function makeDocumentDetectionPredictions(image, logPredictions) {
9093
9094
  }];
9094
9095
  case 8:
9095
9096
  tf__namespace.engine().endScope();
9097
+ tf__namespace.engine().disposeVariables();
9098
+ console.log('Tensors afters:', tf__namespace.memory().numTensors);
9096
9099
  return [7 /*endfinally*/];
9097
9100
  case 9:
9098
9101
  return [2 /*return*/];
@@ -9168,6 +9171,7 @@ function makeFocusPrediction(imageData, canvases, bbox, logPredictions) {
9168
9171
  return [2 /*return*/, [[0, 0], 0]];
9169
9172
  case 6:
9170
9173
  tf__namespace.engine().endScope();
9174
+ tf__namespace.engine().disposeVariables();
9171
9175
  return [7 /*endfinally*/];
9172
9176
  case 7:
9173
9177
  return [2 /*return*/];