diff --git a/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/FetchKernel.metal b/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/FetchKernel.metal index c9d0624817d8508a3dae174e19a705b953d06101..b7d7028d46356e0dae21b352161de31b0820ff1a 100644 --- a/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/FetchKernel.metal +++ b/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/FetchKernel.metal @@ -31,8 +31,8 @@ kernel void fetch(texture2d_array inTexture [[texture(0)]], int output_to = 4 * input_width * input_height; output[gid.z * output_to + 0 * input_width * input_height + gid.y * input_width + gid.x] = input.x; output[gid.z * output_to + 1 * input_width * input_height + gid.y * input_width + gid.x] = input.y; - output[gid.z * output_to + 2 * input_width * input_height + gid.y * input_width + gid.x] = input.z; - output[gid.z * output_to + 3 * input_width * input_height + gid.y * input_width + gid.x] = input.w; +// output[gid.z * output_to + 2 * input_width * input_height + gid.y * input_width + gid.x] = input.z; +// output[gid.z * output_to + 3 * input_width * input_height + gid.y * input_width + gid.x] = input.w; } @@ -52,8 +52,8 @@ kernel void fetch_half(texture2d_array inTexture [[texture(0 int output_to = 4 * input_width * input_height; output[gid.z * output_to + 0 * input_width * input_height + gid.y * input_width + gid.x] = input.x; output[gid.z * output_to + 1 * input_width * input_height + gid.y * input_width + gid.x] = input.y; - output[gid.z * output_to + 2 * input_width * input_height + gid.y * input_width + gid.x] = input.z; - output[gid.z * output_to + 3 * input_width * input_height + gid.y * input_width + gid.x] = input.w; +// output[gid.z * output_to + 2 * input_width * input_height + gid.y * input_width + gid.x] = input.z; +// output[gid.z * output_to + 3 * input_width * input_height + gid.y * input_width + gid.x] = input.w; } diff --git a/metal/paddle-mobile/paddle-mobile/framework/Executor.swift b/metal/paddle-mobile/paddle-mobile/framework/Executor.swift index db8a73be1fb0161a7da78c5f50ae5ab2c85f7a2b..2d11530d4b063e79bddd8d2856fcc2e4993d794a 100644 --- a/metal/paddle-mobile/paddle-mobile/framework/Executor.swift +++ b/metal/paddle-mobile/paddle-mobile/framework/Executor.swift @@ -164,7 +164,7 @@ public class Executor { // return; // self!.ops[testTo - 2].delogOutput() // self!.ops[testTo - 1].delogOutput() -// self!.ops[60].delogOutput() +// self!.ops[5].delogOutput() // return @@ -199,5 +199,3 @@ public class Executor { } } - -//public let paddle_executor: Executor = Executor.init()