masked_fill 解决方案 解决方案 将masked_fill_改为masked_fill即可。 参考自:https://blog.csdn.net/chengyq116/article/details/106961087