-
Notifications
You must be signed in to change notification settings - Fork 35
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
write DCGAN example with different frontend languages #23
Comments
Model definition part:
|
Training loop part:
|
Go+语法建议:
|
确实是个问题。需要想想怎么弄。玉哥之前建议的 Monad pattern 是不是可以解决这个问题?
这个我到觉得是 strong typed languages 的优势。严谨的 Python 程序员应该欢迎。也是我们号称 Go+ 更适合科研的一个说法。
有道理。我看了一下 https://github.com/goplus/gop/blob/master/tutorial/12-For-loop/for.gop ,Go+现在确实不支持
上面例子里什么地方需要 tuple 了?
这个也可以提一个 issue 。之前老许和我在微信上讨论,老许建议增加一个语法能力 touch.RandN(5, 4, {RequireGrad: true}) 目前Go+ 已经支持 touch.RandN(5, 4, {“RequireGrad”: true}) |
@QiJune 我们的第一个 milestone 就把 DCGAN 实现了吧。这个例子是典型的预测和训练一体化的。如果能在 Raspberry Pi 上跑通,并且代码简练如同 Python,应该有初步的说服力了。 |
在这里 |
We want to compare the DCGAN example with different frontend languages: Python/C++/Go/Go+
Python version: https://github.com/pytorch/examples/blob/master/dcgan/main.py
C++ version: https://github.com/pytorch/examples/blob/master/cpp/dcgan/dcgan.cpp
We will add the Go version and Go+ version later.
The text was updated successfully, but these errors were encountered: