05 2022 档案
摘要: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函数
阅读全文
摘要:在anaconda环境下,用pip安装ray后遇到以下问题 AttributeError: partially initialized module 'ray' has no attribute '_private' (most likely due to a circular import) 解决
阅读全文
浙公网安备 33010602011771号