未验证 提交 a75fa6d7 编写于 作者: W Wenyu 提交者: GitHub

[cp] fix recompute state (#7045)

* fix recompute state
上级 7e3195b2
......@@ -352,7 +352,8 @@ class VisionTransformer(nn.Layer):
self.final_norm = final_norm
if use_checkpoint:
print('please set: FLAGS_allocator_strategy=naive_best_fit')
paddle.seed(0)
self.patch_embed = PatchEmbed(
img_size=img_size,
patch_size=patch_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册