摘要: onnx 算子定义 onnx 1.15.0 onnxruntime 1.16.0 https://github.com/onnx/onnx/blob/v1.15.0/docs/Operators.md#Pow 阅读全文
posted @ 2024-07-04 19:48 michaelchengjl 阅读(2) 评论(0) 推荐(0) 编辑
摘要: torch.tensor、numpy.array、list三者之间互相转换 1.1 list 转 numpy ndarray = np.array(list) 1.2 numpy 转 list list = ndarray.tolist() 2.1 list 转 torch.Tensor tenso 阅读全文
posted @ 2024-07-04 17:27 michaelchengjl 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 代码格式化工具clang-format https://blog.csdn.net/itas109/article/details/109211464 https://www.sfysoft.com/2022/05/09/ClangFormat-Reference/index.html 阅读全文
posted @ 2024-07-04 17:10 michaelchengjl 阅读(3) 评论(0) 推荐(0) 编辑
摘要: TensorFlow中numpy与tensor数据相互转化(支持tf1.x-tf2.x) TF 1.x版本 有时候解决起来很简单,就是错误比较难找到,所以我推荐的方法为将数据进行显式的转化。 Numpy2Tensor 虽然TensorFlow网络在输入Numpy数据时会自动转换为Tensor来处理, 阅读全文
posted @ 2024-07-04 11:05 michaelchengjl 阅读(21) 评论(0) 推荐(0) 编辑