interesting... we are already forced to use many tools around python to help being a bit deterministic, more robust tools would help...
-
-
Replying to @mandubian @aloiscochard
Please let us know what you need. Happy to write it.
1 reply 0 retweets 0 likes -
Replying to @dibblego @aloiscochard
Dreaming: I want a tensorflow/pytorch python tensor compile-time dimension checker, Is that possible? :D
2 replies 0 retweets 0 likes -
Replying to @mandubian @aloiscochard
I don't know what that is. But let's go with yes. Want to help me out with knowing what that means?
1 reply 0 retweets 0 likes -
Replying to @dibblego @aloiscochard
you can read that IMHO http://nlp.seas.harvard.edu/NamedTensor ... it's recent and shows a few issues... tensor are just matrix with dimension batch x dim1 x dim2 x ... and all matrix computations aren't possible depending on those dims... a type-dependent system could help but python is farfar
2 replies 0 retweets 1 like -
tensorflow & pytorch have a runtime compile phase that try to check dimensions as much as possible but it has limits and you have to run and there is no inference... dimensions shouldn't be just the value "5" for example but a {name:"batch" + value:5} ...
1 reply 0 retweets 0 likes -
Replying to @mandubian @aloiscochard
You (the programmer) assert the matrix dimension and the tools somehow try to check that it is true?
1 reply 0 retweets 0 likes -
Replying to @dibblego @aloiscochard
yes, it tries but for now, compile phase is limited, some dimension remain dynamic in tensorflow until you run the "fitting/training" phase (you know the batch size after loading the dataset)
1 reply 0 retweets 0 likes -
-
Replying to @dibblego @aloiscochard
Great if you have ideas... the best is naturally to use a stronger lang than python but for now, python is here for long so the idea is to have better tools to help suffering less... maybe mixing python 3.x type annotations with named dimensions would be ideas too...
1 reply 0 retweets 0 likes
"python is here" is the single biggest reason we wrote hpython.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.