def call(self, x,mask=None):
import theano.tensor as T
newx = T.sort(x)
#response = K.reverse(newx, axes=1)
#response = K.sum(x> 0.5, axis=1) / self.k
return newx
#response = K.reshape(newx,[-1,1])
#return K.concatenate([1-response, response], axis=self.label)
#response = K.reshape(x[:,self.axis], (-1,1))
#return K.concatenate([1-response, response], axis=self.axis)
#e = K.exp(x - K.max(x, axis=self.axis, keepdims=True))
#s = K.sum(e, axis=self.axis, keepdims=True)
#return e / s
customlayers.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录