Graphs in Deep Learning

Now I know my ABC, next time won't you trade with me?
Post Reply
Jurassic
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Graphs in Deep Learning

Post by Jurassic »

1) Why does TF and PyTorch need graphs?

2) Why do we care if they are static or dynamic?



Simple high level explanations please
sharpe_machine
Posts: 0
Joined: Thu Jan 01, 2004 12:00 am

Graphs in Deep Learning

Post by sharpe_machine »

2) C++ vs Python? C++ allows very effective optimizations but requires static declarations of literally everything (well, modern C++ has type inference, but still) - you should declare tensor shapes, tensor types, etc.. On the other hand, Python interprets the code and can successfully deal with the wrong data type passed in or wrong shape of the tensor.



1) Well, I do not know the answer to "why" question. But computational graphs have some nice features such as easy derivative computation which is essential for backprop.
Post Reply