diff --git a/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift b/metal/paddle-mobile/paddle-mobile/PaddleMobile.swift index 1d5ca03ecb9c0af1b83412ad44c343267f35a64b..a6ed8d400ede11a09c4e10ac4dd84273dcf079dc 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!)