小编Le *_*ang的帖子

TensorFlow'模块'对象没有属性'global_variables_initializer'

我是Tensorflow的新手我在iPython笔记本上运行Udacity的深度学习作业. 链接

它有一个错误.

AttributeError                            Traceback (most recent call last)
`<ipython-input-18-3446420b5935>` in `<module>`()
  2 
  3 with tf.Session(graph=graph) as session:
----> 4   tf.global_variables_initializer().run()

AttributeError: 'module' object has no attribute 'global_variables_initializer'
Run Code Online (Sandbox Code Playgroud)

请帮忙!我怎样才能解决这个问题?谢谢.

python word2vec deep-learning tensorflow

29
推荐指数
3
解决办法
2万
查看次数

如何将 uint8 切片转换为字符串

[]uint8从 转换为的最佳方式是什么string

我正在使用http://github.com/confluenceinc/confluence-kafka-go/kafka

从 kafka 读取事件。但它不返回纯字符串事件。它返回类型为 的事件[]uint8。我怎样才能将此事件从 转换[]uint8string

type-conversion go

6
推荐指数
1
解决办法
9920
查看次数