dts2hx icon indicating copy to clipboard operation
dts2hx copied to clipboard

[question] it's seem some api was lost .in Tensorflow.js

Open sonygod opened this issue 5 years ago • 5 comments

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

image

image

where is wrong here.

test.ts when I use typescript.

image

maybe there is some bug here?

image

sonygod avatar Nov 06 '20 09:11 sonygod

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)

haxiomic avatar Nov 06 '20 15:11 haxiomic

I'm sorry, it's not work .will you fixed this bug ?

image

image

sonygod avatar Nov 07 '20 01:11 sonygod

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

haxiomic avatar Nov 07 '20 12:11 haxiomic

All right, I'm close this issue until you had time.

sonygod avatar Nov 07 '20 14:11 sonygod

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

haxiomic avatar Nov 07 '20 17:11 haxiomic