相关疑难解决方法(0)

Tensorflow中的矢量移位(Roll)

可以说,我们确实希望使用Keras/TensorFlow处理图像(或ndim向量).对于花式正则化,我们希望将每个输入向左移动一个随机数位置(右侧重新出现的部分).

如何查看和解决:

1)

TensorFlow的numpy roll功能有什么变化吗?

2)

x - 2D tensor
ri - random integer
concatenate(x[:,ri:],x[:,0:ri], axis=1) #executed for each single input to the layer, ri being random again and again (I can live with random only for each batch)
Run Code Online (Sandbox Code Playgroud)

theano keras tensorflow

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

标签 统计

keras ×1

tensorflow ×1

theano ×1