随笔分类 -  debug

摘要:def get_feature(df,all_data,cols,vec_col): enc = OneHotEncoder() df_x=np.int64(df[cols]) cv=CountVectorizer() for feature in vec_col: cv.fit(all_data[ 阅读全文
posted @ 2018-10-07 01:27 在下小白 阅读(3011) 评论(0) 推荐(0)
摘要:记一次超级蠢超级折磨我的bug。 报错内容: tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'x_1' with dtype flo 阅读全文
posted @ 2018-05-08 11:34 在下小白 阅读(17897) 评论(0) 推荐(0)
摘要:先说定义:batch normalization字面意思就是批量标准化。在每次SGD时。在activation前,对mini-batch做规范化操作,使得结果的均值为0,方差为1. 阅读全文
posted @ 2018-04-26 19:55 在下小白 阅读(243) 评论(0) 推荐(0)
摘要:报错信息: OP_REQUIRES failed at assign_op.h:111 : Resource exhausted: OOM when allocating tensor with shape[3,3,384,384] and type float on /job:localhost/ 阅读全文
posted @ 2018-04-26 19:08 在下小白 阅读(5846) 评论(1) 推荐(1)
摘要:如上贴出了:错误信息和错误代码。 这个问题困扰了自己两天,报错大概是说输入的数据和接受的格式不一样,不能作为tensor。 后来问了大神,原因出在tf.reshape(),因为网络训练时用placeholder定义了输入格式,所以输入不能用tensor,而tf.reshape()返回结果就是一个te 阅读全文
posted @ 2018-04-25 18:59 在下小白 阅读(6559) 评论(0) 推荐(0)
摘要:安装好了tensorflow-gpu版本,然后程序中写好了 with tf.device('/gpu:0'): 但是python3 .py程序时还是有错误。 报错为: 2018-04-24 12:58:02.460531: I tensorflow/core/platform/cpu_feature 阅读全文
posted @ 2018-04-24 21:28 在下小白 阅读(12701) 评论(0) 推荐(1)