Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
b33779d6
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b33779d6
编写于
10月 09, 2017
作者:
Y
Yu Yang
提交者:
GitHub
10月 09, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4648 from reyoung/feature/use_proto_lite_for_refacting
Use PROTO_LITE when refactoring Paddle
上级
f6117384
d2217ffa
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
4 addition
and
7 deletion
+4
-7
paddle/framework/block_desc.h
paddle/framework/block_desc.h
+1
-0
paddle/framework/framework.proto
paddle/framework/framework.proto
+1
-0
paddle/framework/op_desc.h
paddle/framework/op_desc.h
+0
-2
paddle/framework/program_desc.h
paddle/framework/program_desc.h
+1
-2
paddle/operators/net_op.h
paddle/operators/net_op.h
+1
-0
paddle/pybind/protobuf.cc
paddle/pybind/protobuf.cc
+0
-3
未找到文件。
paddle/framework/block_desc.h
浏览文件 @
b33779d6
...
@@ -15,6 +15,7 @@ limitations under the License. */
...
@@ -15,6 +15,7 @@ limitations under the License. */
#pragma once
#pragma once
#include <deque>
#include <deque>
#include <memory>
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
#include "paddle/framework/op_desc.h"
#include "paddle/framework/op_desc.h"
...
...
paddle/framework/framework.proto
浏览文件 @
b33779d6
...
@@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
...
@@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License. */
limitations under the License. */
syntax
=
"proto2"
;
syntax
=
"proto2"
;
option
optimize_for
=
LITE_RUNTIME
;
package
paddle
.
framework
;
package
paddle
.
framework
;
enum
AttrType
{
enum
AttrType
{
...
...
paddle/framework/op_desc.h
浏览文件 @
b33779d6
...
@@ -52,8 +52,6 @@ class OpDescBind {
...
@@ -52,8 +52,6 @@ class OpDescBind {
void
SetOutput
(
const
std
::
string
&
param_name
,
void
SetOutput
(
const
std
::
string
&
param_name
,
const
std
::
vector
<
std
::
string
>
&
args
);
const
std
::
vector
<
std
::
string
>
&
args
);
std
::
string
DebugString
()
{
return
this
->
Proto
()
->
DebugString
();
}
bool
HasAttr
(
const
std
::
string
&
name
)
const
{
bool
HasAttr
(
const
std
::
string
&
name
)
const
{
return
attrs_
.
find
(
name
)
!=
attrs_
.
end
();
return
attrs_
.
find
(
name
)
!=
attrs_
.
end
();
}
}
...
...
paddle/framework/program_desc.h
浏览文件 @
b33779d6
...
@@ -14,6 +14,7 @@ limitations under the License. */
...
@@ -14,6 +14,7 @@ limitations under the License. */
#pragma once
#pragma once
#include <memory>
#include <vector>
#include <vector>
#include "paddle/framework/framework.pb.h"
#include "paddle/framework/framework.pb.h"
#include "paddle/platform/macros.h"
#include "paddle/platform/macros.h"
...
@@ -31,8 +32,6 @@ class ProgramDescBind {
...
@@ -31,8 +32,6 @@ class ProgramDescBind {
BlockDescBind
*
Block
(
size_t
idx
)
{
return
blocks_
[
idx
].
get
();
}
BlockDescBind
*
Block
(
size_t
idx
)
{
return
blocks_
[
idx
].
get
();
}
std
::
string
DebugString
()
{
return
Proto
()
->
DebugString
();
}
size_t
Size
()
const
{
return
blocks_
.
size
();
}
size_t
Size
()
const
{
return
blocks_
.
size
();
}
ProgramDesc
*
Proto
();
ProgramDesc
*
Proto
();
...
...
paddle/operators/net_op.h
浏览文件 @
b33779d6
...
@@ -14,6 +14,7 @@ limitations under the License. */
...
@@ -14,6 +14,7 @@ limitations under the License. */
#pragma once
#pragma once
#include <set>
#include "paddle/framework/framework.pb.h"
#include "paddle/framework/framework.pb.h"
#include "paddle/framework/op_registry.h"
#include "paddle/framework/op_registry.h"
...
...
paddle/pybind/protobuf.cc
浏览文件 @
b33779d6
...
@@ -117,7 +117,6 @@ void BindProgramDesc(py::module &m) {
...
@@ -117,7 +117,6 @@ void BindProgramDesc(py::module &m) {
.
def
(
"append_block"
,
&
ProgramDescBind
::
AppendBlock
,
.
def
(
"append_block"
,
&
ProgramDescBind
::
AppendBlock
,
py
::
return_value_policy
::
reference
)
py
::
return_value_policy
::
reference
)
.
def
(
"block"
,
&
ProgramDescBind
::
Block
,
py
::
return_value_policy
::
reference
)
.
def
(
"block"
,
&
ProgramDescBind
::
Block
,
py
::
return_value_policy
::
reference
)
.
def
(
"__str__"
,
&
ProgramDescBind
::
DebugString
)
.
def
(
"num_blocks"
,
&
ProgramDescBind
::
Size
);
.
def
(
"num_blocks"
,
&
ProgramDescBind
::
Size
);
}
}
...
@@ -191,8 +190,6 @@ void BindOpDesc(py::module &m) {
...
@@ -191,8 +190,6 @@ void BindOpDesc(py::module &m) {
.
def
(
"output"
,
&
OpDescBind
::
Output
)
.
def
(
"output"
,
&
OpDescBind
::
Output
)
.
def
(
"output_names"
,
&
OpDescBind
::
OutputNames
)
.
def
(
"output_names"
,
&
OpDescBind
::
OutputNames
)
.
def
(
"set_output"
,
&
OpDescBind
::
SetOutput
)
.
def
(
"set_output"
,
&
OpDescBind
::
SetOutput
)
.
def
(
"__str__"
,
&
OpDescBind
::
DebugString
)
.
def
(
"__repr__"
,
&
OpDescBind
::
DebugString
)
.
def
(
"has_attr"
,
&
OpDescBind
::
HasAttr
)
.
def
(
"has_attr"
,
&
OpDescBind
::
HasAttr
)
.
def
(
"attr_type"
,
&
OpDescBind
::
GetAttrType
)
.
def
(
"attr_type"
,
&
OpDescBind
::
GetAttrType
)
.
def
(
"attr_names"
,
&
OpDescBind
::
AttrNames
)
.
def
(
"attr_names"
,
&
OpDescBind
::
AttrNames
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录