提交 24384336 编写于 作者: L liuruilong

adjuct project structure

上级 3d8aad9e
......@@ -76,11 +76,9 @@ Podfile.lock
SwiftProtobuf.framework
metal/paddle-mobile/Pods/
example/paddle-mobile-demo/paddle-mobile-demo/yolo/
metal/Pods/
paddle-mobile.xcworkspace
......
platform :ios, 9.0
use_frameworks!
workspace 'paddle-mobile.xcworkspace'
target 'paddle-mobile-demo' do
project 'paddle-mobile-demo/paddle-mobile-demo.xcodeproj'
pod 'SwiftProtobuf', '~> 1.0'
end
target 'paddle-mobile' do
pod 'SwiftProtobuf', '~> 1.0'
project 'paddle-mobile/paddle-mobile.xcodeproj'
pod 'SwiftProtobuf', '~> 1.0'
end
......@@ -2,7 +2,7 @@
// AppDelegate.swift
// paddle-mobile-demo
//
// Created by liuRuiLong on 2018/6/20.
// Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved.
//
......
......@@ -2,10 +2,11 @@
// ViewController.swift
// paddle-mobile-demo
//
// Created by liuRuiLong on 2018/6/20.
// Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved.
//
import UIKit
import paddle_mobile
......@@ -13,15 +14,7 @@ class ViewController: UIViewController {
override func 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)
}
override func didReceiveMemoryWarning() {
......
<?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.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
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. */
//
// paddle_mobile.h
// paddle-mobile
//
// Created by liuRuiLong on 2018/6/25.
// Copyright © 2018年 orange. All rights reserved.
//
#import <UIKit/UIKit.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册