• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

repetere / jsonstack-math / 5598931791

pending completion
5598931791

Pull #223

github

web-flow
Merge c09b6edd2 into 9592f3989
Pull Request #223: build(deps-dev): bump @commitlint/config-conventional from 17.6.6 to 17.6.7

97 of 99 branches covered (97.98%)

Branch coverage included in aggregate %.

273 of 273 relevant lines covered (100.0%)

72.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/tensorflow_singleton.ts
1
let tf: any = null;
1✔
2

3
export function setBackend(tfInput: any) {
1✔
4
  tf = tfInput;
1✔
5
}
6

7
export function getBackend() {
1✔
8
  if (tf === null) {
2✔
9
    throw Error(`
1✔
10
============================
11
Howdy 👋👋. Looks like you are running @jsonstack/math but you haven't set a Tensorflow backend. 
12
To do so, simply import (or require) your tensorflow library, and call setBackend like so,
13

14
import * as tf from '@tensorflow/tfjs';
15
import * as jsm from '@jsonstack/math';
16
jsm.setBackend(tf);
17

18
That will let @jsonstack/math know you wish to use a tensorflow library to perform your calculations.
19
============================
20
    `);
21
  }
22
  return tf;
1✔
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc