摘要:
import torch.nn as nn import torch a = "ReLU" #不用带括号 b = getattr(nn,a) c = b(inplace = False)(torch.tensor(-1)) print(c) 结果是0 参考网址:(36条消息) 关于nn.ReLU函数 阅读全文
posted @ 2022-05-16 18:52
李里力离
阅读(87)
评论(0)
推荐(0)
摘要:
在anaconda环境下,用pip安装ray后遇到以下问题 AttributeError: partially initialized module 'ray' has no attribute '_private' (most likely due to a circular import) 解决 阅读全文
posted @ 2022-05-14 13:57
李里力离
阅读(888)
评论(0)
推荐(0)
浙公网安备 33010602011771号