Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Only absolute URLs are supported #30

Closed
lixiaofa-lab opened this issue Feb 7, 2023 · 3 comments
Closed

TypeError: Only absolute URLs are supported #30

lixiaofa-lab opened this issue Feb 7, 2023 · 3 comments

Comments

@lixiaofa-lab
Copy link

lixiaofa-lab commented Feb 7, 2023

how to convert dtype: 'float64',
data: Float64Array(256) into Array

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 9, 2023

Hey @lixiaofa-lab! Can you post the code that you tried, and I'll see if I can help debug?

@lixiaofa-lab
Copy link
Author

Thank you. I was trying to convert the data from Float64Array(256) to a normal javaScript array, but MDN doesn't seem to have that way

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 11, 2023

You should be able to use Array.from:

let typedArray = new Float64Array(256);
let normalArray = Array.from(typedArray);

Please do reopen this issue (or file another one) if you have any further trouble with the library :)

@j6k4m8 j6k4m8 closed this as completed Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants