0

如果MPSCNNConvolutionDataSource协议的load方法返回 false 会发生什么?系统会抛出错误还是卷积层会默默地失败?如果它静默失败,我怎么知道它失败了?

4

1 回答 1

2

它触发了一个断言:

/BuildRoot/Library/Caches/com.apple.xbs/Sources/MetalImage/MetalImage-121.4.3/
MPSNeuralNetwork/Filters/MPSCNNConvolution.mm:1605: failed assertion 
`[MPSCNNConvolution initWithDevice:convolutionDescriptor:weights:] weights.load 
should return YES'
于 2019-06-22T10:45:33.033 回答