({inputs, backend})
| 23 | kernelName: FlipLeftRight, |
| 24 | backendName: 'tensorflow', |
| 25 | kernelFunc({inputs, backend}) { |
| 26 | const nodeBackend = backend as NodeJSKernelBackend; |
| 27 | const {image} = inputs as FlipLeftRightInputs; |
| 28 | const opAttrs = [ |
| 29 | createTensorsTypeOpAttr('Tidx', 'int32'), |
| 30 | createTensorsTypeOpAttr('T', image.dtype), |
| 31 | ]; |
| 32 | const axes = util.parseAxisParam([2], image.shape); |
| 33 | const axisTensor = tensor1d(axes, 'int32'); |
| 34 | const res = |
| 35 | nodeBackend.executeSingleOutput( |
| 36 | 'ReverseV2', opAttrs, [image, axisTensor]); |
| 37 | axisTensor.dispose(); |
| 38 | return res; |
| 39 | } |
| 40 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…