8000 GitHub - saeedahmadian/Tensorflow_vs_Torch: Tensorflow_sv_Torch · GitHub
[go: up one dir, main page]

Skip to content
< 7FFF link rel="preload" as="image" href="https://github.githubassets.com/assets/universe-9af583553ea01049.webp"/>

About

Tensorflow_sv_Torch

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Compare Tensorflow with Pytorch using logistic regression

Tensorflow_sv_Torch

The followings are highlighted for the difference

torch.autograd.Variable() ==> tf.Variable()

torch.nn.function. ... ==> tf.nn. ...

torch.nn. Seqential, Linear, Softmax ==> tf.keras.layers. Seqential, Dense, Softmax

torch.optim ==> tf.keras.optimizers

torch.nn.Loss+ MSE, BCE and etc ==> tf.keras.losses. ...

torch.nn.Module ==> tf.keras.Model

Loss.Backward() calculated gradients ==> with tf.GradientTape() as t : Loss and t.gradient() calculated gradients

optim.step ==> optim.applygradient(grad_var)

About

Tensorflow_sv_Torch

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0