Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle-Lite
提交
ef02f605
P
Paddle-Lite
项目概览
PaddlePaddle
/
Paddle-Lite
通知
331
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
271
列表
看板
标记
里程碑
合并请求
78
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle-Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
271
Issue
271
列表
看板
标记
里程碑
合并请求
78
合并请求
78
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ef02f605
编写于
9月 17, 2018
作者:
L
liuruilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused files
上级
2eba1984
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
7 addition
and
211 deletion
+7
-211
metal/PreluKernel/PreluKernel.xcodeproj/project.pbxproj
metal/PreluKernel/PreluKernel.xcodeproj/project.pbxproj
+0
-164
metal/PreluKernel/PreluKernel.xcodeproj/project.xcworkspace/contents.xcworkspacedata
...el.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+0
-7
metal/PreluKernel/PreluKernel.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
...project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+0
-8
metal/PreluKernel/PreluKernel.xcodeproj/xcuserdata/liuruilong.xcuserdatad/xcschemes/xcschememanagement.plist
...liuruilong.xcuserdatad/xcschemes/xcschememanagement.plist
+0
-14
metal/PreluKernel/PreluKernel/PreluKernel.metal
metal/PreluKernel/PreluKernel/PreluKernel.metal
+0
-12
metal/paddle-mobile-demo/paddle-mobile-demo.xcodeproj/xcuserdata/liuruilong.xcuserdatad/xcschemes/paddle-mobile-demo.xcscheme
...ruilong.xcuserdatad/xcschemes/paddle-mobile-demo.xcscheme
+1
-1
metal/paddle-mobile-demo/paddle-mobile-demo/ViewController.swift
...addle-mobile-demo/paddle-mobile-demo/ViewController.swift
+2
-1
metal/paddle-mobile/paddle-mobile/Genet.swift
metal/paddle-mobile/paddle-mobile/Genet.swift
+2
-2
metal/paddle-mobile/paddle-mobile/MobilenetSSD_AR.swift
metal/paddle-mobile/paddle-mobile/MobilenetSSD_AR.swift
+2
-2
未找到文件。
metal/PreluKernel/PreluKernel.xcodeproj/project.pbxproj
已删除
100644 → 0
浏览文件 @
2eba1984
// !$*UTF8*$!
{
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
FCEB6843212F00CC00D2448E
/* PreluKernel.metal in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
FCEB6842212F00CC00D2448E
/* PreluKernel.metal */
;
};
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
FCEB683F212F00CC00D2448E
/* PreluKernel.metallib */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
"archive.metal-library"
;
includeInIndex
=
0
;
path
=
PreluKernel.metallib
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
FCEB6842212F00CC00D2448E
/* PreluKernel.metal */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.metal
;
path
=
PreluKernel.metal
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* Begin PBXGroup section */
FCEB6838212F00CC00D2448E
=
{
isa
=
PBXGroup
;
children
=
(
FCEB6841212F00CC00D2448E
/* PreluKernel */
,
FCEB6840212F00CC00D2448E
/* Products */
,
);
sourceTree
=
"<group>"
;
};
FCEB6840212F00CC00D2448E
/* Products */
=
{
isa
=
PBXGroup
;
children
=
(
FCEB683F212F00CC00D2448E
/* PreluKernel.metallib */
,
);
name
=
Products
;
sourceTree
=
"<group>"
;
};
FCEB6841212F00CC00D2448E
/* PreluKernel */
=
{
isa
=
PBXGroup
;
children
=
(
FCEB6842212F00CC00D2448E
/* PreluKernel.metal */
,
);
path
=
PreluKernel
;
sourceTree
=
"<group>"
;
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
FCEB683E212F00CC00D2448E
/* PreluKernel */
=
{
isa
=
PBXNativeTarget
;
buildConfigurationList
=
FCEB6846212F00CC00D2448E
/* Build configuration list for PBXNativeTarget "PreluKernel" */
;
buildPhases
=
(
FCEB683D212F00CC00D2448E
/* Sources */
,
);
buildRules
=
(
);
dependencies
=
(
);
name
=
PreluKernel
;
productName
=
PreluKernel
;
productReference
=
FCEB683F212F00CC00D2448E
/* PreluKernel.metallib */
;
productType
=
"com.apple.product-type.metal-library"
;
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
FCEB6839212F00CC00D2448E
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
0940
;
ORGANIZATIONNAME
=
orange
;
TargetAttributes
=
{
FCEB683E212F00CC00D2448E
=
{
CreatedOnToolsVersion
=
9.4.1
;
};
};
};
buildConfigurationList
=
FCEB683C212F00CC00D2448E
/* Build configuration list for PBXProject "PreluKernel" */
;
compatibilityVersion
=
"Xcode 9.3"
;
developmentRegion
=
en
;
hasScannedForEncodings
=
0
;
knownRegions
=
(
en
,
);
mainGroup
=
FCEB6838212F00CC00D2448E
;
productRefGroup
=
FCEB6840212F00CC00D2448E
/* Products */
;
projectDirPath
=
""
;
projectRoot
=
""
;
targets
=
(
FCEB683E212F00CC00D2448E
/* PreluKernel */
,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
FCEB683D212F00CC00D2448E
/* Sources */
=
{
isa
=
PBXSourcesBuildPhase
;
buildActionMask
=
2147483647
;
files
=
(
FCEB6843212F00CC00D2448E
/* PreluKernel.metal in Sources */
,
);
runOnlyForDeploymentPostprocessing
=
0
;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
FCEB6844212F00CC00D2448E
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
IPHONEOS_DEPLOYMENT_TARGET
=
11.4
;
MTL_ENABLE_DEBUG_INFO
=
YES
;
SDKROOT
=
iphoneos
;
};
name
=
Debug
;
};
FCEB6845212F00CC00D2448E
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
IPHONEOS_DEPLOYMENT_TARGET
=
11.4
;
MTL_ENABLE_DEBUG_INFO
=
NO
;
SDKROOT
=
iphoneos
;
};
name
=
Release
;
};
FCEB6847212F00CC00D2448E
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
Z5M2UUN5YV
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
};
name
=
Debug
;
};
FCEB6848212F00CC00D2448E
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
Z5M2UUN5YV
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
};
name
=
Release
;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
FCEB683C212F00CC00D2448E
/* Build configuration list for PBXProject "PreluKernel" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
FCEB6844212F00CC00D2448E
/* Debug */
,
FCEB6845212F00CC00D2448E
/* Release */
,
);
defaultConfigurationIsVisible
=
0
;
defaultConfigurationName
=
Release
;
};
FCEB6846212F00CC00D2448E
/* Build configuration list for PBXNativeTarget "PreluKernel" */
=
{
isa
=
XCConfigurationList
;
buildConfigurations
=
(
FCEB6847212F00CC00D2448E
/* Debug */
,
FCEB6848212F00CC00D2448E
/* Release */
,
);
defaultConfigurationIsVisible
=
0
;
defaultConfigurationName
=
Release
;
};
/* End XCConfigurationList section */
};
rootObject
=
FCEB6839212F00CC00D2448E
/* Project object */
;
}
metal/PreluKernel/PreluKernel.xcodeproj/project.xcworkspace/contents.xcworkspacedata
已删除
100644 → 0
浏览文件 @
2eba1984
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version =
"1.0"
>
<FileRef
location =
"self:PreluKernel.xcodeproj"
>
</FileRef>
</Workspace>
metal/PreluKernel/PreluKernel.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
已删除
100644 → 0
浏览文件 @
2eba1984
<?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>
metal/PreluKernel/PreluKernel.xcodeproj/xcuserdata/liuruilong.xcuserdatad/xcschemes/xcschememanagement.plist
已删除
100644 → 0
浏览文件 @
2eba1984
<?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>
SchemeUserState
</key>
<dict>
<key>
PreluKernel.xcscheme
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
</dict>
</dict>
</dict>
</plist>
metal/PreluKernel/PreluKernel/PreluKernel.metal
已删除
100644 → 0
浏览文件 @
2eba1984
//
// PreluKernel.metal
// PreluKernel
//
// Created by liuRuiLong on 2018/8/23.
// Copyright © 2018年 orange. All rights reserved.
//
#include <metal_stdlib>
using namespace metal;
metal/paddle-mobile-demo/paddle-mobile-demo.xcodeproj/xcuserdata/liuruilong.xcuserdatad/xcschemes/paddle-mobile-demo.xcscheme
浏览文件 @
ef02f605
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</AdditionalOptions>
</AdditionalOptions>
</TestAction>
</TestAction>
<LaunchAction
<LaunchAction
buildConfiguration =
"
Debug
"
buildConfiguration =
"
Release
"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
launchStyle =
"0"
...
...
metal/paddle-mobile-demo/paddle-mobile-demo/ViewController.swift
浏览文件 @
ef02f605
...
@@ -104,7 +104,8 @@ class ViewController: UIViewController {
...
@@ -104,7 +104,8 @@ class ViewController: UIViewController {
let
time
=
Date
.
init
()
.
timeIntervalSince
(
startDate
)
let
time
=
Date
.
init
()
.
timeIntervalSince
(
startDate
)
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
// print(resultHolder!.result![0])
// print(resultHolder!.result![0])
// sSelf.resultTextView.text = sSelf.runner.net.resultStr(res: res)
sSelf
.
resultTextView
.
text
=
sSelf
.
runner
.
net
.
resultStr
(
res
:
resultHolder
!
)
sSelf
.
elapsedTimeLabel
.
text
=
"平均耗时:
\(
time
/
Double
(
max
)
*
1000.0
)
ms"
sSelf
.
elapsedTimeLabel
.
text
=
"平均耗时:
\(
time
/
Double
(
max
)
*
1000.0
)
ms"
}
}
...
...
metal/paddle-mobile/paddle-mobile/Genet.swift
浏览文件 @
ef02f605
...
@@ -35,8 +35,8 @@ public class Genet: Net {
...
@@ -35,8 +35,8 @@ public class Genet: Net {
}
}
override
public
func
resultStr
(
res
:
ResultHolder
)
->
String
{
override
public
func
resultStr
(
res
:
ResultHolder
)
->
String
{
fatalError
()
//
fatalError()
// return " \(Array<Float>(res.suffix(10))
) ... "
return
"
\(
res
.
result
!
[
0
]
)
... "
}
}
}
}
metal/paddle-mobile/paddle-mobile/MobilenetSSD_AR.swift
浏览文件 @
ef02f605
...
@@ -35,7 +35,7 @@ public class MobileNet_ssd_AR: Net{
...
@@ -35,7 +35,7 @@ public class MobileNet_ssd_AR: Net{
}
}
override
public
func
resultStr
(
res
:
ResultHolder
)
->
String
{
override
public
func
resultStr
(
res
:
ResultHolder
)
->
String
{
return
"
\(
res
)
"
return
"
\(
res
.
result
!
[
0
]
)
"
}
}
override
func
fetchResult
(
paddleMobileRes
:
GPUResultHolder
)
->
ResultHolder
{
override
func
fetchResult
(
paddleMobileRes
:
GPUResultHolder
)
->
ResultHolder
{
...
@@ -51,7 +51,7 @@ public class MobileNet_ssd_AR: Net{
...
@@ -51,7 +51,7 @@ public class MobileNet_ssd_AR: Net{
fatalError
()
fatalError
()
}
}
let
startDate
=
Date
.
init
()
//
let startDate = Date.init()
// print("scoreFormatArr: ")
// print("scoreFormatArr: ")
//print((0..<score.capacity).map{ score.result[$0] }.strideArray())
//print((0..<score.capacity).map{ score.result[$0] }.strideArray())
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录