-
Notifications
You must be signed in to change notification settings - Fork 12
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
Static types for the Keras API #2
Comments
Hi @shadaj I'm interested in contributing Keras API facades - were there any big changes since the last |
HI @Avasil, that's awesome to hear! Not really, you should be able to add in facades just like the existing ones. |
@shadaj Do you have any advice on figuring out proper type to return in facade? I want to try mnist example with static types but I struggle with: import me.shadaj.scalapy.py
import me.shadaj.scalapy.numpy.NDArray
@py.native trait Mnist extends py.Object {
def load_data(): ((NDArray[Long], NDArray[Long]), (NDArray[Long], NDArray[Long])) = py.native
}
// somewhere else
py.module("keras.datasets.mnist").as[Mnist].load_data() I also tried
Basically I'm going at it a bit blindly and would appreciate any tips :D BTW should |
Ah, this is a bug with the old Jep backend for ScalaPy that was fixed in I think |
The recommended API for use with TensorFlow is now Keras, so we should have static type definitions for it.
The text was updated successfully, but these errors were encountered: