![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
littleSYao
这个作者很懒,什么都没留下…
展开
-
pytorch
pytorchnn.Linearnn.Parameter nn.Linear ''' class torch.nn.Linear(in_features,out_features,bias=True) weight=Parameter(torch.Tensor(out_features,in_features)) bias=Parameter(torch.Tensor(out_features)) ''' import torch my_input=torch.randn(128,100) my_laye原创 2020-06-18 17:23:26 · 131 阅读 · 0 评论 -
python技巧列表
python使用easydict新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 easydict 以属性的方式访问字典的值,可用于建立一个全局变量。 from easydict import EasyDict as edi原创 2020-06-16 20:16:41 · 108 阅读 · 0 评论 -
python-argparse,read/write,os.path
python-argparse,read/write,os.pathargparseread/writereadwriteos.pathcreate file folderfile list argparse import argparse parser=argparse.ArgumentParser(description='test param') parser.add_argument('-...原创 2019-08-29 13:05:48 · 146 阅读 · 0 评论 -
python-opencv
python-opencv read video import cv2 video_data=cv2.VideoCapture(video) rval,frame=video_data.read() full_frame_num=int(video_data.get(cv2.CAP_PROP_FRAME_COUNT)) #print("######full_frame_num:{}".format...原创 2019-08-29 13:22:48 · 106 阅读 · 0 评论 -
python-plt
python-plt curse: import numpy as np import matplotlib.pyplot as plt with open(predict_file) as f: lines=f.readlines() for line in lines: line=line.rstrip() ...原创 2019-08-29 17:17:15 · 170 阅读 · 0 评论