dts2hx
dts2hx copied to clipboard
[question] it's seem some api was lost .in Tensorflow.js
npx dts2hx @tensorflow/tfjs
https://www.tensorflow.org/js/guide/layers_for_keras_users?hl=en
I can't find any api like tf.layers.dense


where is wrong here.
test.ts when I use typescript.

maybe there is some bug here?

Thanks for the report, you're right this is a bug, tensorflow has some pretty unusual type definitions! Seems like the layers field is added in the @tensorflow/tfjs-layers library
You may be able to access it via tensorflow.tfjs_layers.dist.Exports_layers.dense(), let me know if that works or not! (I found this by using "go to definition" on dense in TypeScript)
I'm sorry, it's not work .will you fixed this bug ?


I think this will be resolved by some architectural changes I have planned, however I can't give you a timeline for that dev because it happens in between breaks in my commercial work At a guess it could be ~6 months out before I can dedicate enough time to make those changes
All right, I'm close this issue until you had time.
It's ok :), it's useful to know about - I'll keep it open to remind me to check that my changes do fix it