标签:constant object ons class 一个 iss error cap detail
random_order = list(range(len(total_data))) # range 返回的结果需要用list
np.random.shuffle(random_order)
TypeError: Using a tf.Tensor as a Python bool is not allowed.
: v_in_dim = input_shape[2][-1].value
不加value,是一个 <class ‘tensorflow.python.framework.tensor_shape.Dimension‘>
类型的变量,需要加.valueimport tensorflow as tf
from keras import backend as K
K.arange(K.shape(K.constant([1]))[0])
keras.backend.arange does not allow tensor start,要么使用keras,要么使用tf.range
标签:constant object ons class 一个 iss error cap detail
原文地址:https://www.cnblogs.com/carolsun/p/14353486.html