From 35c9786109ac0033ae585d54b6a7e464e3ad2181 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Wed, 19 Sep 2018 16:39:14 +0800 Subject: [PATCH] correct genet --- .../Operators/Kernels/metal/FetchKernel.metal | 8 ++++---- .../paddle-mobile/paddle-mobile/framework/Executor.swift | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) 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 c9d0624817..b7d7028d46 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 db8a73be1f..2d11530d4b 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() -- GitLab