文章目录
学习笔记4.3.AI相关-crypten使用gpu运行卷积conv时出现AssertionError: more than one group is unsupported on GPU问题的解决
参考链接
https://github.com/facebookresearch/CrypTen/issues/386
解决方法
找到crypten/cuda/cuda_tensor.py中的__patched_conv_ops方法,做如下修改:
@staticmethod
def __patched_conv_ops(op, x, y, *args, **kwargs):
if "groups" in kwargs:
groups = kwargs["groups"]
#del kwargs["groups"]
else:
groups = 1
bs, c, *img