Only tuples, lists and Variables supported as JIT inputs/outputs. Dictionaries and strings are also accepted but their usage is not recommended. But got unsupported type builtin_function_or_method

报错原因:input没有提供,应该是torch的tensor:

input = torch.randn(1, 3, 48, 224)  # .cuda()
 torch.onnx.export(model, input, onnx_name, verbose=False)

lists and Variables supported as JIT inputs/outputs. Dictionaries and strings are also accepted but相关推荐

  1. 解决Pytorch转onnx错误:Only tuples, lists and Variables are supported as JIT inputs/outputs!

    一.错误描述 最近尝试通过torch.onnx.export接口将pth转为onnx,但是报了错误:Only tuples, lists and Variables are supported as ...

  2. pandas基于元组列表(list of tuples)、列表词典(dictionary of lists)、词典列表(list of dictionaries)构建dataframe数据实战

    pandas基于元组列表(list of tuples).列表词典(dictionary of lists).词典列表(list of dictionaries)构建dataframe数据实战 目录

  3. Pytorch在训练过程中常见的问题

    1 Input type (CUDAFloatTensor) and weight type (CPUFloatTensor) should be the same 仔细看错误信息,CUDA和CPU, ...

  4. YOLOv5导出jit,onnx,engine

    一.YOLOv5导出jit YOLOv5自导出,我们可以直接用它的导出代码:models/export.py """Exports a YOLOv5 *.pt model ...

  5. torch.jit.trace与torch.jit.script的区别

    文章目录 术语 什么时候用torch.jit.trace(结论:首选) 优点 什么时候用torch.jit.script(结论:必要时) 错误举例 动态控制 输入和输出有丰富类型的模型需要格外注意 Q ...

  6. angular jit and aot

    为什么需要编译 Angular应用中包含的组件.HTML模板(比如:@Directive.@Component.@NgModule.@Pipe)很多都是JS VM无法解析的,所以在浏览器渲染应用之前, ...

  7. 【keras】A `Concatenate` layer should be called on a list of at least 2 inputs

    下面有一段两个Sequential的model连接一起的例子 错误示例 错误代码如下, from keras.models import Sequential from keras.layers.co ...

  8. Pytorch → ONNX → TensorRT

    Pytorch → ONNX → TensorRT 由于实验室与应急减灾中心关于道路检测的项目需加快推理速度,在尝试手动融合模型的Con层和bn层发现推理速度提升不明显之后,我的"mento ...

  9. c# midi窗体_Midi:C#中的Windows MIDI库

    c# midi窗体 介绍 (Introduction) I do some MIDI sequencing and recording and I found it helpful to be abl ...

最新文章

  1. 中继器中继后怎么进入后台重新设置
  2. docker环境下solr6.0配置(中文分词+拼音)
  3. MyBatis-19MyBatis代码生成器-XML配置详解
  4. bat命令 修改ini文件内容_Linux文件内容查看相关命令
  5. sierra mysql_macOS High Sierra 使用 Homebrew 安装 MYSQL 5.7
  6. 陇东学院计算机学院教授有,陇东学院
  7. 《剑指offer》第二十三题(链表中环的入口结点)
  8. win10 wlan 诊断显示后没有有效的ip配置
  9. 服务器系统影子系统,影子系统安装教程
  10. Linux系统装intel网卡,在Centos下安装intel网卡的方法
  11. matlab日历制作
  12. 秃顶之路-Day11
  13. Android实现横幅通知
  14. 计算机的USB是什么,usb2.0和3.0的区别,教您电脑usb2.0和3.0的有什么区别
  15. 分频器——秒分频、三分频、五分频、任意分频和偶数分频
  16. 【信息系统项目管理师】项目管理过程的三万字大论文
  17. 100个软硬件都要懂的示波器基础知识
  18. 【五一创作】(2017NHOI-GOC测评)第1题 鱼形(fish)
  19. 4 HQL操作之 -- DDL命令
  20. Keystone的安装及其配置

热门文章

  1. 迭代器报“vector iterators incompatible”错的几种可能
  2. Win7最高权限问题
  3. 深入了解WM_SIZE
  4. WinDbg演示IA-32 CPU下的Windows 分页机制下的地址转换过程
  5. python数组操作加法_Numpy数组索引和/或加法似乎是
  6. 华师大计算机入门模拟卷,计算机入门模拟卷A-华东师范大学.docx
  7. linux查看ssh端口8222,下载服务器SSH被用户恶意猜密码了
  8. 了解OutOfMemoryError
  9. activiti-explorer mysql_Activiti explorer.war示例工程使用过程图解
  10. deepin系统引导_国产 Linux 发行版 深度操作系统 20 正式版发布