Chinese-Text-Classification icon indicating copy to clipboard operation
Chinese-Text-Classification copied to clipboard

Chinese-Text-Classification,Tensorflow CNN(卷积神经网络)实现的中文文本分类。QQ群:522785813,微信群二维码:http://www.tensorflownews.com/

Results 6 Chinese-Text-Classification issues
Sort by recently updated
recently updated
newest added

在最初的代码中使用的时候没有发生内存溢出的问题,但是在使用中文数据集进行训练的时候发生内存溢出导致内存不足,有没有什么解决办法?

self.scores =tf.layers.dense(self.h_drop,num_classes,name='scores',kernel_initializer=tf.contrib.layers.xavier_initializer(),bias_initializer=tf.constant_initializer(0.1)) # W = tf.get_variable( # "W", # shape=[num_filters_total, num_classes], # initializer=tf.contrib.layers.xavier_initializer()) # b = tf.Variable(tf.constant(0.1, shape=[num_classes]), name="b") # l2_loss += tf.nn.l2_loss(W) # l2_loss += tf.nn.l2_loss(b) # print(self.scores.shape) #...

![image](https://user-images.githubusercontent.com/25605618/33594307-6d463eb8-d9ce-11e7-9742-a6a37997a40a.png)