是否应该用paddle.randint取代random.randint? #68055
Labels
NVIDIA
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
status/new-issue
新建
type/bug-report
报bug
bug描述 Describe the Bug
我在使用
paddle.vision.transforms.RandomCrop
的时候,固定seed,但crop的结果仍然是随机的。发现这是因为 transforms.py中用了random.randint来生成随机数。一般用户只会记得去设置paddle.seed和np.random.seed,并不知道Layer内部调用了random。所以建议用paddle来生成随机数。
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: