- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 Cannot interpret feed_dict key as Tensor: The name ‘labels‘ looks like an (invalid) Operation name,
Cannot interpret feed_dict key as Tensor: The name ‘labels’ looks like an (invalid) Operation name, not a Tensor. Tensor names must be of the form “<op_name>:<output_index>”tensorflow 踩坑 错误详解参考:https://stackoverflow.com/questions/38406863/can
2020-08-11 15:00:28
594
原创 删除文章中多余的空格和换行符
在写论文的时候遇到了从别的文章复制过来文字会多出来空格和换行符的问题,所以从csdn上借鉴了一下别人的程序并且自己改进了一下。使用之前要在工程文件里建立一个word.txt的文件,并将自己需要改变格式的文字放进去,改变后的文字在test_copy.txt中。#encoding = utf-8#import osimport itertoolsimport numpy as npdef d...
2019-12-30 21:09:02
883
原创 基于pytorch的MNIST数据集cnn手写识别,新手范例
基于pytorch的MNIST数据集cnn手写识别,新手范例import torch as tfrom torch.autograd import Variable as Vfrom torch.utils.data import DataLoaderimport matplotlib.pyplot as pltfrom torchvision import transformsfro...
2019-12-07 10:18:51
359
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人