改变BNNS卷积层中的权重

时间:2017-03-15 22:52:25

标签: accelerate-framework

调用BNNSFilterCreateConvolutionLayer(并传入BNNSConvolutionLayerParameters)后,是否可以更改过滤器中的权重? 现在我有:

BNNSConvolutionLayerParameters layer_params;
bzero(&layer_params, sizeof(layer_params));
layer_params.weights.data = ....
...
... = BNNSFilterCreateConvolutionLayer(..., &layer_params, ...)

但我希望能够更改layer_params.weights.data指向的缓冲区,同时必须销毁并重新创建(BNNSFilterCreateConvolutionLayerBNNSFilter

0 个答案:

没有答案