本文目标:使用Windows上安装的Docker来安装和运行Jenkins,并搭建基于本地代码仓库的CICD流程。要求熟悉Docker,并熟练使用基本的命令。
一、Jenkins的安装
建议参考官方的英文文档:Build a Java app with Maven (jenkins.io)需要注意,官方中文文档比较落后,且按照其教程并不能顺利搭建和启动Jenkins。
第一步,确认本地Docker
PyTorch Tensor自带的方法view()和reshape():
view(): Returns a new tensor with the same data as the self tensor but of a different shape.
reshape(): Returns a tensor with the same data and number of elements