by IshKebab · 9y ago · 0 comments
I've tried to work out how to do similar things in Torch and Tensorflow but all they really offer is pre-packaged layers like LSTM. If you want to make your own it's difficult, undocumented and not at all ergonomic.
How does Caffe2 compare?
function (someinput):
output = do_stuff
return output
Which then gets passed on to the next layer. Again, it's quite possible I've just missed something, or there is some inherent ML limitation that makes this impossible. But if such a thing is possible, it would be a rather awesome feature from my POV.https://github.com/Microsoft/CNTK/wiki/BrainScript-Activatio...
List of functions:
https://github.com/Microsoft/CNTK/wiki/BrainScript-Full-Func...
https://github.com/caffe2/caffe2/blob/master/caffe2/python/e...
We use it for machine translation so the perf is nice.
If you have design feedbacks please let us know - we'll be really grateful.
Will Caffe2 support dynamic graphs (perhaps down the line)? What is your reasoning behind whichever decision?