README.md script tag instructions don't work with tfjs v1
Closed this issue · 5 comments
1wheel commented
This throws a Uncaught (in promise) TypeError: n is not a function
error in chrome & ff:
<!DOCTYPE html>
<meta charset='utf-8'>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-tsne"></script>
<script>
const tfdata = tf.randomUniform([2000,10]);
const tsneOpt = tsne.tsne(tfdata);
tsneOpt.compute()
</script>
Downgrading tfjs fixes:
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.14.1"></script>
zhihua-chen commented
@Nicola17 Are there any plans to update tfjs-tsne to use v1.x of tensorflow.js?
Nicola17 commented
Hi @zhihua-chen, unfortunately I don't have any plans at the moment :(
I know @bldrvnlw did some work on it, @bldrvnlw do you have a version running with v1.x?
zhihua-chen commented
@Nicola17 We have an intern who has started working on this a little bit.
Nicola17 commented
Great to hear! Please keep me posted :)
…On Tue, May 21, 2019, 7:02 PM zhihua-chen ***@***.***> wrote:
@Nicola17 <https://github.com/Nicola17> We have an intern who has started
working on this a little bit.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABFQ75N7LJTDGB5BX7AX3CLPWQTKTA5CNFSM4HB4K2SKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV4RQAY#issuecomment-494475267>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABFQ75P7RL5K7VF2W3HYP4DPWQTKTANCNFSM4HB4K2SA>
.
cpietsch commented
What I find interesting is that the observable notebooks (eg. https://observablehq.com/@mbostock/lets-try-t-sne) do not work even though use the of the 0.14 release of tfjs