From 7a455b079b07aad2ec6b24208e34c8a5b9461e67 Mon Sep 17 00:00:00 2001 From: liuruilong Date: Thu, 30 Aug 2018 20:35:02 +0800 Subject: [PATCH] update --- .../paddle-mobile-demo/Net/MobileNetSSD.swift | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/metal/paddle-mobile-demo/paddle-mobile-demo/Net/MobileNetSSD.swift b/metal/paddle-mobile-demo/paddle-mobile-demo/Net/MobileNetSSD.swift index dcd55830a7..9bcb7c191f 100644 --- a/metal/paddle-mobile-demo/paddle-mobile-demo/Net/MobileNetSSD.swift +++ b/metal/paddle-mobile-demo/paddle-mobile-demo/Net/MobileNetSSD.swift @@ -78,10 +78,36 @@ class MobileNet_ssd_hand: Net{ let paramPath: String let modelDir: String + +// let paramPointer: UnsafeMutableRawPointer +// +// let paramSize: Int +// +// let modelPointer: UnsafeMutableRawPointer +// +// let modelSize: Int +// +// /** +// * inParamPointer: 参数文件内存地址 +// * inParamSize: 参数文件大小(字节数) +// * inModelPointer: 模型文件内存地址 +// * inModelSize: 模型文件大小(字节数) +// */ +// init(inParamPointer: UnsafeMutableRawPointer, inParamSize: Int, inModelPointer: UnsafeMutableRawPointer, inModelSize: Int) { +// paramPointer = inParamPointer +// paramSize = inParamSize +// modelPointer = inModelPointer +// modelSize = inModelSize +//// fatalError() +// } + + init() { modelPath = Bundle.main.path(forResource: "ssd_hand_model", ofType: nil) ?! "model null" paramPath = Bundle.main.path(forResource: "ssd_hand_params", ofType: nil) ?! "para null" modelDir = "" preprocessKernel = MobilenetssdPreProccess.init(device: MetalHelper.shared.device) +// fatalError() + } } -- GitLab