unpkg issues with tfjs

This commit is contained in:
SheetJS 2022-09-22 16:26:53 -04:00
parent 17b3a8780e
commit de18b667b9
3 changed files with 24 additions and 5 deletions

@ -3,7 +3,7 @@ title: Typed Arrays and ML
---
<head>
<script src="https://unpkg.com/@tensorflow/tfjs@3.18.0/dist/tf.min.js"></script>
<script src="https://docs.sheetjs.com/tfjs/tf.min.js"></script>
</head>
Machine learning libraries in JS typically use "Typed Arrays". Typed Arrays are
@ -15,11 +15,10 @@ This demo covers conversions between worksheets and Typed Arrays for use with
:::note
The live code blocks in this demo load the standalone TensorFlow.js build:
The live code blocks in this demo load the standalone TensorFlow.js build from
version `3.18.0`. It is shipped in the NodeJS package at `/dist/tf.min.js`.
```html
<script src="https://unpkg.com/@tensorflow/tfjs@3.18.0/dist/tf.min.js"></script>
```
[Official installation notes](https://www.tensorflow.org/js/tutorials/setup)
:::

@ -125,6 +125,8 @@ The scripts will be available at `xlsx/dist/xlsx.zahl` (CommonJS) and
```js
import * as XLSX from "xlsx";
import XLSX_ZAHL_PAYLOAD from "xlsx/dist/xlsx.zahl";
import * as fs from "fs";
XLSX.set_fs(fs);
var wb = XLSX.utils.book_new(); var ws = XLSX.utils.aoa_to_sheet([
["SheetJS", "<3","ிிள்"],
[72,,"Arbeitsblätter"],

18
docz/static/tfjs/tf.min.js vendored Normal file

File diff suppressed because one or more lines are too long