阅读背景:

如何在我的函数中将张量类型转换为numpy narray类型?

来源:互联网 
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data


def weight_variable(shape):
    initial = tf.truncated_normal(shape, stddev=0.1)
    return tf.Variable(initial)


def bias_variable(shape):
    initial = tf.constant(0.1, shape=shape)
    return tf.Variable(initial)
import tensorflow as tf
from tensorflow.example



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: