由torch使用fourier用到的复数技术引发的报错:

einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1, 1, 20, 17, 144] [144, 144, 20, 20]->[1, 144, 20, 20, 144]

预备:pytorch中的新老复数


老复数:最后一维必须是2,用来存储实部和虚部;
新复数:定义了一个专门的complex类

错误根因

modes1设置超过了其最大允许尺寸,见上图注释。

错误诱因

einsum要求的维度约束bixy ioxy->boxy未能满足:

einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1,相关推荐

  1. einsum() operands do not broadcast with remapped shapes [original->remapped]报错解决方法

    RuntimeError: einsum() operands do not broadcast with remapped shapes [original->remapped]: [4, 6 ...

  2. operands could not be broadcast together with remapped shapes

    operands could not be broadcast together with remapped shapes 报错代码: point_num = 12try:labels=np.pad( ...

  3. ValueError: operands could not be broadcast together with shapes解决

    ValueError: operands could not be broadcast together with shapes (1,2) (1,3) import numpy as np a=np ...

  4. 【python问题系列--4】ValueError: operands could not be broadcast together with shapes (100,3) (3,1)...

    背景:dataMatrix是(100,3)的列表,labelMat是(1,100)的列表,weights是(3,1)的数组,属性如下代码所示: >>> import types &g ...

  5. ValueError: operands could not be broadcast together with shapes (320,320,4) (3,) (320,320,4)

    problem: ValueError: operands could not be broadcast together with shapes (320,320,4) (3,) (320,320, ...

  6. 成功解决IndexError: shape mismatch: indexing arrays could not be broadcast together with shapes (100,)

    成功解决IndexError: shape mismatch: indexing arrays could not be broadcast together with shapes (100,) 目 ...

  7. 报错ValueError: operands could not be broadcast together with shapes (448,448) with (224,224)

    这个错误发生原因是因为图片的尺寸与weight 不匹配,不能做乘积,所以需要改变图片尺寸. 使用如下代码:img = cv2.resize(img, (448, 448)) 加在img = cv2.r ...

  8. 一文掌握爱因斯坦求和约定 einsum

    爱因斯坦跟 NumPy 有关系吗?没有,但他提出了一个针对数学公式的符号简化办法,即爱因斯坦求和约定(Einstein Summation Convention)或者叫爱因斯坦标记法(Einstein ...

  9. 【Python学习记录】Numpy广播机制(broadcast)

    ✨ 博客主页:小小马车夫的主页 ✨ 所属专栏:Python学习记录 文章目录 一.什么是Numpy广播机制 二.Numpy广播应用 三.Numpy广播规则 一.什么是Numpy广播机制 在Numpy. ...

  10. web应用程序安全性测试_Web应用程序导航菜单的可访问性

    web应用程序安全性测试 A few years ago when I started my journey in the field of frontend engineering at that ...

最新文章

  1. 人工智能会终结就业吗?
  2. 新版Microsoft Azure Web管理控制台 - Microsoft Azure New Portal - (3)
  3. jzoj1768,P2704,POJ1185-[NOI2001]炮兵阵地【状态压缩dp】
  4. 业务监控系统如何做,一起来看看如何使用Statsd+Graphite+Grafana搭建业务监控系统
  5. 微信小程序开发-微信登陆流程
  6. Android学习小Demo(10)ToDoList的加强版
  7. DB2查询主键、索引、表约束
  8. 网狐棋牌游戏服务端架构设计原理
  9. Ubuntu18.04下的模拟神器RetroArch
  10. 由于应用程序配置不正确,未能启动此应用程序
  11. ems 的条形码生成PHP JS,thinkphp5 Barcodegen 生成条形码
  12. 使用NLTK实现stemming(2)
  13. 拼多多,是漏洞的损失?还是营销的手段?
  14. 企业网站建设为什么要定制开发?
  15. 快速使用ros小乌龟教程——ROS初体验
  16. airtest获取手机分辨率,通过相对坐标定位元素
  17. 公会晋升计划第 2 季来啦!
  18. PS实例之制作晶莹剔透气泡
  19. TwinCAT3 与 SMC(EX600总线模块)通讯
  20. 数组名传参(pass by reference)

热门文章

  1. android关于无法debug
  2. 【转载】Python自省
  3. 眼睛干涩胀痛:得了干眼症该怎么办?
  4. 模拟电路笔记(一)晶体二极管及其应用
  5. 如何撰写高水平的博士论文?
  6. REP-0004: 警告:无法打开用户首选项文件
  7. 未来5年大机遇:做贩卖多巴胺的超级玩家
  8. 统一数据接入实践分享
  9. Python 树表查找_千树万树梨花开,忽如一夜春风来(二叉排序树、平衡二叉树)
  10. java 面向对象三个特征_[Java] 面向对象的三个特征与含义