提交 e4cf2516 编写于 作者: L liuruilong

adjuct project structure

上级 ca137372
...@@ -76,11 +76,9 @@ Podfile.lock ...@@ -76,11 +76,9 @@ Podfile.lock
SwiftProtobuf.framework SwiftProtobuf.framework
metal/paddle-mobile/Pods/ metal/Pods/
example/paddle-mobile-demo/paddle-mobile-demo/yolo/
paddle-mobile.xcworkspace
......
platform :ios, 9.0 platform :ios, 9.0
use_frameworks! use_frameworks!
workspace 'paddle-mobile.xcworkspace'
target 'paddle-mobile-demo' do target 'paddle-mobile-demo' do
project 'paddle-mobile-demo/paddle-mobile-demo.xcodeproj'
pod 'SwiftProtobuf', '~> 1.0' pod 'SwiftProtobuf', '~> 1.0'
end end
target 'paddle-mobile' do target 'paddle-mobile' do
pod 'SwiftProtobuf', '~> 1.0' project 'paddle-mobile/paddle-mobile.xcodeproj'
pod 'SwiftProtobuf', '~> 1.0'
end end
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<key>paddle-mobile-demo.xcscheme</key> <key>paddle-mobile-demo.xcscheme</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>2</integer> <integer>4</integer>
</dict> </dict>
</dict> </dict>
</dict> </dict>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// AppDelegate.swift // AppDelegate.swift
// paddle-mobile-demo // paddle-mobile-demo
// //
// Created by liuRuiLong on 2018/6/20. // Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved. // Copyright © 2018年 orange. All rights reserved.
// //
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
// ViewController.swift // ViewController.swift
// paddle-mobile-demo // paddle-mobile-demo
// //
// Created by liuRuiLong on 2018/6/20. // Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved. // Copyright © 2018年 orange. All rights reserved.
// //
import UIKit import UIKit
import paddle_mobile import paddle_mobile
...@@ -13,14 +14,6 @@ class ViewController: UIViewController { ...@@ -13,14 +14,6 @@ class ViewController: UIViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
var date = Date.init()
if let modelPath = Bundle.main.path(forResource: "model", ofType: nil), let paraPath = Bundle.main.path(forResource: "params", ofType: nil) {
print(" bundlepath: " + modelPath)
let loader = Loader<Float32>.init()
try! loader.load(modelPath: modelPath, paraPath: paraPath)
}
let els = Date.init().timeIntervalSince(date)
print(els)
} }
......
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:../../example/paddle-mobile-demo/paddle-mobile-demo.xcodeproj">
</FileRef>
<FileRef
location = "group:paddle-mobile.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. //
// paddle_mobile.h
Licensed under the Apache License, Version 2.0 (the "License"); // paddle-mobile
you may not use this file except in compliance with the License. //
You may obtain a copy of the License at // Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved.
http://www.apache.org/licenses/LICENSE-2.0 //
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册