You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from utils import setup_seed
from textda.data_expansion import data_expansion
import random
if __name__ == '__main__':
# setup_seed(1)
random.seed(1)
print(data_expansion('这是一句测试的句子。'))
The text was updated successfully, but these errors were encountered:
如题。以下代码运行两次发现结果不能复现。
除此之外,还固定了numpy和pytorch的随机数种子,还是无法复现。
请问,应该如何设置种子?
The text was updated successfully, but these errors were encountered: