c-c++
西伯利亚的蓝眼睛
这个作者很懒,什么都没留下…
展开
-
32位 64位系统中 各类型字节数
字节长度原创 2016-05-28 11:29:37 · 1541 阅读 · 0 评论 -
C/C++中链表操作
C/C++中链表操作刷面试宝典和剑指offer原创 2016-05-30 11:13:42 · 654 阅读 · 0 评论 -
sizeof()与strlen()
sizeof()与strlen()原创 2016-05-30 15:19:40 · 305 阅读 · 0 评论 -
如何在c++中使用pytorch模型
同步知乎页:https://zhuanlan.zhihu.com/p/66707105 该过程有两步: 第一:在python中导出pytorch模型 第二:在c++中加载并执行 第一步:convert Pytorch func/model to Torch Script 有2中方法可以完成该任务。 一、 torch.jit.trace function def foo...原创 2019-05-23 10:33:31 · 1543 阅读 · 3 评论 -
c++ load pytorch 的数据转换
tensor、numpy、vector转换 python中: **numpy -> tensor**: `torch.from_numpy(ndarray)` **tensor -> numpy**: `tensor.numpy()` c++中: **array -> tensor**: `torch::tensor(at::ArrayRef<float&...原创 2019-05-24 10:42:13 · 9322 阅读 · 16 评论