We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好,请问我在用子类化方法构建模型的时候,想将该模型嵌入另一个子类化模型中, 第一种方式是将嵌入的模型写成继承Layer类的方法,然后重写get_config 方法, 第二种方式是将嵌入的模型写成继承Model类的方法重写compute_output_shape方法。
请问这两种方法效果是否是一样的?或者有什么区别?
The text was updated successfully, but these errors were encountered:
@Student-HXJ 尽可能避免用子类化方法构建模型。特殊情况下如果有必要,可以自定义Layer. 详情可以参考项目中相关内容呢!
Sorry, something went wrong.
No branches or pull requests
你好,请问我在用子类化方法构建模型的时候,想将该模型嵌入另一个子类化模型中,
第一种方式是将嵌入的模型写成继承Layer类的方法,然后重写get_config 方法,
第二种方式是将嵌入的模型写成继承Model类的方法重写compute_output_shape方法。
请问这两种方法效果是否是一样的?或者有什么区别?
The text was updated successfully, but these errors were encountered: