It turns out that MPSthere is no such operation as deconvolution. The closest analogue to tensorflowis conv2d_transpose.
MPS
deconvolution
tensorflow
conv2d_transpose
Is it possible to sort custom plugin MPSoperations between default operations?
MPS now provides MPSCNNConvolutionTranspose on macOS X.13 and tvOS / iOS 11.
You can write your own nuclear processing cores and execute them between MPS operations.
For instance:
let commandBuffer = commandQueue.makeCommandBuffer() . . . // Do something with an MPSCNN layer: layer1.encode(commandBuffer: commandBuffer, sourceImage: img1, destinationImage: img2) // Perform your own compute kernel: let encoder = commandBuffer.makeComputeCommandEncoder() encoder.setComputePipelineState(yourOwnComputePipeline) encoder.setTexture(img2.texture, at: 0) encoder.setTexture(img3.texture, at: 1) let threadGroupSize = MTLSizeMake(. . .) let threadGroups = MTLSizeMake(img2.texture.width / threadGroupSize.width, img2.texture.height / threadGroupSize.height, 1) encoder.dispatchThreadgroups(threadGroups, threadsPerThreadgroup: threadGroupSize) encoder.endEncoding() // Do something with another MPSCNN layer: layer2.encode(commandBuffer: commandBuffer, sourceImage: img3, destinationImage: img4) . . . commandBuffer.commit()
Metal Shading Language yourOwnComputePipeline. , .
yourOwnComputePipeline
[ , .]
, " ", , , , , .
, MPSCNNConvolution , MPSImage, , , " " , .
MPSCNNConvolution
MPSImage
, MPS.
: . , conv :
1, 2, 3 4, 5, 6 7, 8, 9
, , :
9, 8, 7 6, 5, 4 3, 2, 1
, . :
1, 2, 3, 4, 5, 6, 7, 8, 9
, , :
9, 8, 7, 6, 5, 4, 3, 2, 1
, . deconv.
, , MPSCNNConvolution. .
Source: https://habr.com/ru/post/1668669/More articles:Merge JSON arrays - jsonHow to search only in open files in vscode? - searchDeleting application data / NSUserDefaults on macOS - cocoahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1668667/scenekit-drops-to-40-fps&usg=ALkJrhi0GB7zxnI6J-NU2a8cXjjV-uCVnAHow to search all files in the current open folder / workspace? - visual-studio-codeСцена SpriteKit с низким fps при запуске - swiftNo iOS Distribution Signature Certificate - iosFunction not implemented. Reinstall library with support for Windows, GTK + 2.x or Carbon - pythonHow to use the main parameters of an ASP.NET application with a simple injector - c #opencv imshow with waitKey too slow on Mac OS X 10.10.2 (using C ++) - c ++All Articles