Hi Owen,
to track the state of Linear Algebra in TFJS, You might take a look at the following issue:
https://github.com/tensorflow/tfjs/issues/1516
In the meantime - as long as You don't need gradients - You could use one of the following JS libraries for Eigenvalues and SVD and do the rest in TensorflowJS:
Hope this helps
Dirk
--
You received this message because you are subscribed to the Google Groups "TensorFlow.js Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tfjs+uns...@tensorflow.org.
Visit this group at https://groups.google.com/a/tensorflow.org/group/tfjs/.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/tfjs/e0bcd61c-1591-4088-bc79-baf4b0dd1d88%40tensorflow.org.
The Python scientific stack, compiled to WebAssembly.It provides transparent conversion of objects between Javascript and Python. When inside a browser, this means Python has full access to the Web APIs.
<script src="https://pyodide.cdn.iodide.io/pyodide.js"></script><script src="https://cdn.jsdelivr.net/npm/@tensorflow/tf...@1.0.0/dist/tf.min.js"></script><script>// create js variable to import to pythona = 123b = tf.tensor([123,456,789]).dataSync()
languagePluginLoader.then(() => { pyodide.loadPackage(['numpy','matplotlib']).then(() => { pyodide.runPython(` import js import numpy as np
# import variable from js print(js.a)
# create variable to send to js foo = [x*x for x in range(5)] print(foo)
# create numpy array bar = np.array([1,2,3]) print(bar)
# import tensor and use with numpy b_py = np.array(js.b) + 100 print(b_py) `)
// get variable from python let foo_js = pyodide.pyimport('foo') console.log(foo_js)
// get numpy array from python let bar_js = pyodide.pyimport('bar') console.log(bar_js)
// round-trip tensor from python let b_js = pyodide.pyimport('b_py') tf.tensor(b_js).print() })});</script>