-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
使用FLuid版本,之前定义的神经网络还可以直接使用吗? #8888
Comments
需要修改。 |
要怎么修改呢?如果只是修改 image = fluid.layers.data(name='image', shape=image_shape, dtype='float32') |
所有的layer都在fluid下了 而不是 paddle下,可以去参考 https://github.com/PaddlePaddle/models/tree/develop/fluid 下的例子 |
@yeyupiaoling 的问题核心是不是Paddle 1程序如何迁移到PaddlePaddle Fluid?我理解这是一个挺重要的问题。我是Fluid的设计者,但是我对Paddle 1的API不够熟悉,所以不能简单扼要的回答。请 @qingqing01 或者 @reyoung 方便的时候看看吧。 这二位对 Paddle 1 很熟悉,并且参与了 Fluid 的开发工作,对两方面都熟悉。 |
@yeyupiaoling 关于Paddle 1和Fluid的API层面的区别: 可以对比 https://github.com/PaddlePaddle/book/blob/develop/03.image_classification/vgg.py 和 https://github.com/dzhwinter/benchmark/blob/master/fluid/vgg16.py :
|
@wangkuiyi @qingqing01 |
比如我们之前定义的网络是这样的https://github.com/PaddlePaddle/models/blob/develop/image_classification/vgg.py#L6-L38
如果使用FLuid版本,需要修改神经网络吗?
The text was updated successfully, but these errors were encountered: