From 73800d3280906c1f5ccb4d03533b64ad2a38d30a Mon Sep 17 00:00:00 2001 From: liuruilong Date: Mon, 8 Oct 2018 18:00:21 +0800 Subject: [PATCH] update program loader --- metal/paddle-mobile/paddle-mobile/PaddleMobile.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift b/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift index 1d5ca03ecb..a6ed8d400e 100644 --- a/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift +++ b/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift @@ -82,8 +82,8 @@ public class Runner: NSObject { } let loader = Loader.init() do { - program = try loader.load(device: inDevice, paramPointer: net.paramPointer!, paramSize: net.paramSize,modePointer:net.modelPointer!,modelSize:net.modelSize) -// program = try loader.load(device: inDevice, modelPath: net.modelPath, paraPath: net.paramPath) +// program = try loader.load(device: inDevice, paramPointer: net.paramPointer!, paramSize: net.paramSize,modePointer:net.modelPointer!,modelSize:net.modelSize) + program = try loader.load(device: inDevice, modelPath: net.modelPath, paraPath: net.paramPath) net.updateProgram(program: program!) executor = try Executor.init(inDevice: inDevice, inQueue: inQueue, inProgram: program!) -- GitLab