自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 AttributeError: module ‘tensorflow_core.compat.v1‘ has no attribute ‘contrib‘

由于tensorflow版本问题,在tensorflow2.x版本里没有contrib组件,因此无法使用LSTMRNN实例中的sequence_loss_by_example函数。AttributeError: module ‘tensorflow_core.compat.v1’ has no attribute ‘contrib’解决办法:找到自己运行代码的环境下的Lib\site-packages\tensorflow_core,在我的机器上是如下:C:\Users\Dell\anaconda3\

2022-03-14 15:53:04 5140

原创 【Python】 ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments

今天调用TensorFlow框架中的softmax_cross_entropy_with_logits()方法时,报了如下的错误:ValueError: Only call softmax_cross_entropy_with_logits with named arguments (labels=…, logits=…, …)这个函数现在不能按照以前的方式调用了,以前的调用方式如下:cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logi

2022-03-14 10:42:21 1330

原创 NotFoundError: Key biases_1 not found in checkpoint [[node save_2/RestoreV2 (defined at \AppData\L

当找不到检查点时,NotFoundError: Key biases_1 not found in checkpoint[[node save_2/RestoreV2 (defined at \AppData\Local\Temp/ipykernel_48952/3519746809.py:26) ]]由于在Tensorflow 2.0 中,eager execution 是默认开启的。所以,需要先关闭eager execution使用tf.compat.v1.disable_eager_executio

2022-03-13 20:19:50 1521

转载 InvalidArgumentError: You must feed a value for placeholder tensor ‘inputs_2/x_input‘ with dtype flo

InvalidArgumentError: You must feed a value for placeholder tensor ‘inputs_2/x_input’ with dtype float and shape [?,1][[node inputs_2/x_input (defined at \AppData\Local\Temp/ipykernel_34984/1196531313.py:32) ]]还是因为merged = tf.summary.merge_all()的问题,详细见链接

2022-03-13 15:04:47 191

转载 TensorFlow报错:InvalidArgumentError: You must feed a value for placeholder tensor ‘inputs/y_input‘

添加链接描述

2022-03-13 11:00:09 426

原创 使用mnist数据集通过tenserflow进行classification分类学习

tensorflow加载mnist数据集进行分类训练

2022-03-12 20:54:12 398

原创 2020-12-21

机器学习有三种学习形式:(1)监督学习(2)无监督学习(3)强化学习

2020-12-21 21:11:54 58

AttributeError: module 'tensorflow.compat.v1' has no attribute '

AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'的问题您具体怎么解决问题具体解决的seq_loss.py文件

2022-08-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除