修改了算法代码,并建立了一个简单的训练脚本.修改bert处理二维输入,移除PPO的permute参数

This commit is contained in:
2025-10-22 16:56:12 +08:00
parent b626702cbb
commit 3f7e183c4b
101 changed files with 3837 additions and 39 deletions

View File

@@ -1,6 +1,9 @@
import torch
from torch import nn
from .bert import Bert
try:
from .bert import Bert
except ImportError:
from bert import Bert
DISC_LOGIT_INIT_SCALE = 1.0