Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
PaddleRec
提交
28d374d2
P
PaddleRec
项目概览
BaiXuePrincess
/
PaddleRec
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleRec
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleRec
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
28d374d2
编写于
4月 29, 2020
作者:
T
tangwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix forder format
上级
2aa46612
变更
41
隐藏空白更改
内联
并排
Showing
41 changed file
with
47 addition
and
45 deletion
+47
-45
demo/user_define_trainer.py
demo/user_define_trainer.py
+2
-2
fleet_rec/__init__.py
fleet_rec/__init__.py
+0
-0
fleet_rec/check.py
fleet_rec/check.py
+0
-0
fleet_rec/core/__init__.py
fleet_rec/core/__init__.py
+0
-0
fleet_rec/core/engine/__init__.py
fleet_rec/core/engine/__init__.py
+0
-0
fleet_rec/core/engine/engine.py
fleet_rec/core/engine/engine.py
+0
-0
fleet_rec/core/engine/local_cluster_engine.py
fleet_rec/core/engine/local_cluster_engine.py
+1
-1
fleet_rec/core/engine/local_mpi_engine.py
fleet_rec/core/engine/local_mpi_engine.py
+1
-1
fleet_rec/core/factory.py
fleet_rec/core/factory.py
+1
-1
fleet_rec/core/layer.py
fleet_rec/core/layer.py
+0
-0
fleet_rec/core/metric.py
fleet_rec/core/metric.py
+0
-0
fleet_rec/core/metrics/__init__.py
fleet_rec/core/metrics/__init__.py
+0
-0
fleet_rec/core/metrics/auc_metrics.py
fleet_rec/core/metrics/auc_metrics.py
+1
-1
fleet_rec/core/model.py
fleet_rec/core/model.py
+1
-1
fleet_rec/core/modules/__init__.py
fleet_rec/core/modules/__init__.py
+0
-0
fleet_rec/core/modules/coding/__init__.py
fleet_rec/core/modules/coding/__init__.py
+0
-0
fleet_rec/core/modules/coding/layers.py
fleet_rec/core/modules/coding/layers.py
+0
-0
fleet_rec/core/modules/modul/__init__.py
fleet_rec/core/modules/modul/__init__.py
+0
-0
fleet_rec/core/modules/modul/build.py
fleet_rec/core/modules/modul/build.py
+2
-2
fleet_rec/core/modules/modul/layers.py
fleet_rec/core/modules/modul/layers.py
+1
-1
fleet_rec/core/reader.py
fleet_rec/core/reader.py
+1
-1
fleet_rec/core/trainer.py
fleet_rec/core/trainer.py
+1
-1
fleet_rec/core/trainers/__init__.py
fleet_rec/core/trainers/__init__.py
+0
-0
fleet_rec/core/trainers/cluster_trainer.py
fleet_rec/core/trainers/cluster_trainer.py
+2
-2
fleet_rec/core/trainers/ctr_coding_trainer.py
fleet_rec/core/trainers/ctr_coding_trainer.py
+2
-2
fleet_rec/core/trainers/ctr_modul_trainer.py
fleet_rec/core/trainers/ctr_modul_trainer.py
+6
-6
fleet_rec/core/trainers/single_trainer.py
fleet_rec/core/trainers/single_trainer.py
+2
-2
fleet_rec/core/trainers/transpiler_trainer.py
fleet_rec/core/trainers/transpiler_trainer.py
+3
-3
fleet_rec/core/utils/__init__.py
fleet_rec/core/utils/__init__.py
+0
-0
fleet_rec/core/utils/dataloader_instance.py
fleet_rec/core/utils/dataloader_instance.py
+2
-2
fleet_rec/core/utils/dataset.py
fleet_rec/core/utils/dataset.py
+2
-2
fleet_rec/core/utils/dataset_instance.py
fleet_rec/core/utils/dataset_instance.py
+1
-1
fleet_rec/core/utils/envs.py
fleet_rec/core/utils/envs.py
+0
-0
fleet_rec/core/utils/fs.py
fleet_rec/core/utils/fs.py
+0
-0
fleet_rec/core/utils/table.py
fleet_rec/core/utils/table.py
+0
-0
fleet_rec/core/utils/util.py
fleet_rec/core/utils/util.py
+1
-1
fleet_rec/run.py
fleet_rec/run.py
+5
-5
fleet_rec/tests/__init__.py
fleet_rec/tests/__init__.py
+0
-0
models/rank/criteo_reader.py
models/rank/criteo_reader.py
+2
-2
models/rank/dnn/model.py
models/rank/dnn/model.py
+2
-2
setup.py
setup.py
+5
-3
未找到文件。
demo/user_define_trainer.py
浏览文件 @
28d374d2
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
fleet
_
rec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
class
UserDefineTrainer
(
TranspileTrainer
):
class
UserDefineTrainer
(
TranspileTrainer
):
...
...
fleetrec/__init__.py
→
fleet
_
rec/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/check.py
→
fleet
_
rec/check.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/__init__.py
→
fleet
_
rec/core/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/engine/__init__.py
→
fleet
_
rec/core/engine/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/engine/engine.py
→
fleet
_
rec/core/engine/engine.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/engine/local_cluster_engine.py
→
fleet
_
rec/core/engine/local_cluster_engine.py
浏览文件 @
28d374d2
...
@@ -19,7 +19,7 @@ import sys
...
@@ -19,7 +19,7 @@ import sys
import
os
import
os
import
copy
import
copy
from
fleetrec.core.engine.engine
import
Engine
from
fleet
_
rec.core.engine.engine
import
Engine
class
LocalClusterEngine
(
Engine
):
class
LocalClusterEngine
(
Engine
):
...
...
fleetrec/core/engine/local_mpi_engine.py
→
fleet
_
rec/core/engine/local_mpi_engine.py
浏览文件 @
28d374d2
...
@@ -19,7 +19,7 @@ import sys
...
@@ -19,7 +19,7 @@ import sys
import
os
import
os
import
copy
import
copy
from
fleetrec.core.engine.engine
import
Engine
from
fleet
_
rec.core.engine.engine
import
Engine
class
LocalMPIEngine
(
Engine
):
class
LocalMPIEngine
(
Engine
):
...
...
fleetrec/core/factory.py
→
fleet
_
rec/core/factory.py
浏览文件 @
28d374d2
...
@@ -17,7 +17,7 @@ import sys
...
@@ -17,7 +17,7 @@ import sys
import
yaml
import
yaml
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
trainer_abs
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"trainers"
)
trainer_abs
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"trainers"
)
trainers
=
{}
trainers
=
{}
...
...
fleetrec/core/layer.py
→
fleet
_
rec/core/layer.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/metric.py
→
fleet
_
rec/core/metric.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/metrics/__init__.py
→
fleet
_
rec/core/metrics/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/metrics/auc_metrics.py
→
fleet
_
rec/core/metrics/auc_metrics.py
浏览文件 @
28d374d2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
import
math
import
math
import
numpy
as
np
import
numpy
as
np
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.metric
import
Metric
from
fleet
_
rec.core.metric
import
Metric
class
AUCMetric
(
Metric
):
class
AUCMetric
(
Metric
):
...
...
fleetrec/core/model.py
→
fleet
_
rec/core/model.py
浏览文件 @
28d374d2
import
abc
import
abc
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
class
Model
(
object
):
class
Model
(
object
):
"""R
"""R
...
...
fleetrec/core/modules/__init__.py
→
fleet
_
rec/core/modules/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/modules/coding/__init__.py
→
fleet
_
rec/core/modules/coding/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/modules/coding/layers.py
→
fleet
_
rec/core/modules/coding/layers.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/modules/modul/__init__.py
→
fleet
_
rec/core/modules/modul/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/modules/modul/build.py
→
fleet
_
rec/core/modules/modul/build.py
浏览文件 @
28d374d2
...
@@ -3,8 +3,8 @@ import copy
...
@@ -3,8 +3,8 @@ import copy
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.pslib
import
fleet
from
fleetrec.core.model
import
Model
from
fleet
_
rec.core.model
import
Model
from
fleetrec.core.utils
import
table
from
fleet
_
rec.core.utils
import
table
def
create
(
config
):
def
create
(
config
):
...
...
fleetrec/core/modules/modul/layers.py
→
fleet
_
rec/core/modules/modul/layers.py
浏览文件 @
28d374d2
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
# limitations under the License.
# limitations under the License.
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.layer
import
Layer
from
fleet
_
rec.core.layer
import
Layer
class
EmbeddingInputLayer
(
Layer
):
class
EmbeddingInputLayer
(
Layer
):
...
...
fleetrec/core/reader.py
→
fleet
_
rec/core/reader.py
浏览文件 @
28d374d2
...
@@ -19,7 +19,7 @@ import os
...
@@ -19,7 +19,7 @@ import os
import
paddle.fluid.incubate.data_generator
as
dg
import
paddle.fluid.incubate.data_generator
as
dg
import
yaml
import
yaml
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
class
Reader
(
dg
.
MultiSlotDataGenerator
):
class
Reader
(
dg
.
MultiSlotDataGenerator
):
...
...
fleetrec/core/trainer.py
→
fleet
_
rec/core/trainer.py
浏览文件 @
28d374d2
...
@@ -20,7 +20,7 @@ import time
...
@@ -20,7 +20,7 @@ import time
import
yaml
import
yaml
from
paddle
import
fluid
from
paddle
import
fluid
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
class
Trainer
(
object
):
class
Trainer
(
object
):
...
...
fleetrec/core/trainers/__init__.py
→
fleet
_
rec/core/trainers/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/trainers/cluster_trainer.py
→
fleet
_
rec/core/trainers/cluster_trainer.py
浏览文件 @
28d374d2
...
@@ -23,8 +23,8 @@ from paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler import f
...
@@ -23,8 +23,8 @@ from paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler import f
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler.distributed_strategy
import
StrategyFactory
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler.distributed_strategy
import
StrategyFactory
from
paddle.fluid.incubate.fleet.base.role_maker
import
PaddleCloudRoleMaker
from
paddle.fluid.incubate.fleet.base.role_maker
import
PaddleCloudRoleMaker
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
from
fleetrec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
fleet
_
rec.core.trainers.transpiler_trainer
import
TranspileTrainer
class
ClusterTrainer
(
TranspileTrainer
):
class
ClusterTrainer
(
TranspileTrainer
):
...
...
fleetrec/core/trainers/ctr_coding_trainer.py
→
fleet
_
rec/core/trainers/ctr_coding_trainer.py
浏览文件 @
28d374d2
...
@@ -18,8 +18,8 @@ import paddle.fluid as fluid
...
@@ -18,8 +18,8 @@ import paddle.fluid as fluid
from
paddle.fluid.incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.pslib
import
fleet
from
paddle.fluid.incubate.fleet.base.role_maker
import
MPISymetricRoleMaker
from
paddle.fluid.incubate.fleet.base.role_maker
import
MPISymetricRoleMaker
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
from
fleetrec.core.trainer
import
Trainer
from
fleet
_
rec.core.trainer
import
Trainer
class
CtrPaddleTrainer
(
Trainer
):
class
CtrPaddleTrainer
(
Trainer
):
...
...
fleetrec/core/trainers/ctr_modul_trainer.py
→
fleet
_
rec/core/trainers/ctr_modul_trainer.py
浏览文件 @
28d374d2
...
@@ -24,12 +24,12 @@ from paddle.fluid.incubate.fleet.parameter_server.pslib import fleet
...
@@ -24,12 +24,12 @@ from paddle.fluid.incubate.fleet.parameter_server.pslib import fleet
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
paddle.fluid.incubate.fleet.base.role_maker
import
GeneralRoleMaker
from
fleetrec.core.utils
import
fs
as
fs
from
fleet
_
rec.core.utils
import
fs
as
fs
from
fleetrec.core.utils
import
util
as
util
from
fleet
_
rec.core.utils
import
util
as
util
from
fleetrec.core.metrics.auc_metrics
import
AUCMetric
from
fleet
_
rec.core.metrics.auc_metrics
import
AUCMetric
from
fleetrec.core.modules.modul
import
build
as
model_basic
from
fleet
_
rec.core.modules.modul
import
build
as
model_basic
from
fleetrec.core.utils
import
dataset
from
fleet
_
rec.core.utils
import
dataset
from
fleetrec.core.trainer
import
Trainer
from
fleet
_
rec.core.trainer
import
Trainer
def
wroker_numric_opt
(
value
,
env
,
opt
):
def
wroker_numric_opt
(
value
,
env
,
opt
):
...
...
fleetrec/core/trainers/single_trainer.py
→
fleet
_
rec/core/trainers/single_trainer.py
浏览文件 @
28d374d2
...
@@ -20,8 +20,8 @@ from __future__ import print_function
...
@@ -20,8 +20,8 @@ from __future__ import print_function
import
logging
import
logging
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
fleet
_
rec.core.trainers.transpiler_trainer
import
TranspileTrainer
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
import
numpy
as
np
import
numpy
as
np
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(message)s"
)
logging
.
basicConfig
(
format
=
"%(asctime)s - %(levelname)s - %(message)s"
)
...
...
fleetrec/core/trainers/transpiler_trainer.py
→
fleet
_
rec/core/trainers/transpiler_trainer.py
浏览文件 @
28d374d2
...
@@ -20,9 +20,9 @@ import os
...
@@ -20,9 +20,9 @@ import os
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
paddle.fluid.incubate.fleet.parameter_server.distribute_transpiler
import
fleet
from
fleetrec.core.trainer
import
Trainer
from
fleet
_
rec.core.trainer
import
Trainer
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
from
fleetrec.core.utils
import
dataloader_instance
from
fleet
_
rec.core.utils
import
dataloader_instance
class
TranspileTrainer
(
Trainer
):
class
TranspileTrainer
(
Trainer
):
...
...
fleetrec/core/utils/__init__.py
→
fleet
_
rec/core/utils/__init__.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/utils/dataloader_instance.py
→
fleet
_
rec/core/utils/dataloader_instance.py
浏览文件 @
28d374d2
...
@@ -16,8 +16,8 @@ from __future__ import print_function
...
@@ -16,8 +16,8 @@ from __future__ import print_function
import
os
import
os
import
sys
import
sys
from
fleetrec.core.utils.envs
import
lazy_instance
from
fleet
_
rec.core.utils.envs
import
lazy_instance
from
fleetrec.core.utils.envs
import
get_global_env
from
fleet
_
rec.core.utils.envs
import
get_global_env
def
dataloader
(
readerclass
,
train
,
yaml_file
):
def
dataloader
(
readerclass
,
train
,
yaml_file
):
...
...
fleetrec/core/utils/dataset.py
→
fleet
_
rec/core/utils/dataset.py
浏览文件 @
28d374d2
...
@@ -18,8 +18,8 @@ import datetime
...
@@ -18,8 +18,8 @@ import datetime
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.utils
import
fs
as
fs
from
fleet
_
rec.core.utils
import
fs
as
fs
from
fleetrec.core.utils
import
util
as
util
from
fleet
_
rec.core.utils
import
util
as
util
class
Dataset
(
object
):
class
Dataset
(
object
):
...
...
fleetrec/core/utils/dataset_instance.py
→
fleet
_
rec/core/utils/dataset_instance.py
浏览文件 @
28d374d2
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
from
__future__
import
print_function
from
__future__
import
print_function
import
sys
import
sys
from
fleetrec.core.utils.envs
import
lazy_instance
from
fleet
_
rec.core.utils.envs
import
lazy_instance
if
len
(
sys
.
argv
)
!=
4
:
if
len
(
sys
.
argv
)
!=
4
:
raise
ValueError
(
"reader only accept 3 argument: 1. reader_class 2.train/evaluate 3.yaml_abs_path"
)
raise
ValueError
(
"reader only accept 3 argument: 1. reader_class 2.train/evaluate 3.yaml_abs_path"
)
...
...
fleetrec/core/utils/envs.py
→
fleet
_
rec/core/utils/envs.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/utils/fs.py
→
fleet
_
rec/core/utils/fs.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/utils/table.py
→
fleet
_
rec/core/utils/table.py
浏览文件 @
28d374d2
文件已移动
fleetrec/core/utils/util.py
→
fleet
_
rec/core/utils/util.py
浏览文件 @
28d374d2
...
@@ -17,7 +17,7 @@ import time
...
@@ -17,7 +17,7 @@ import time
import
datetime
import
datetime
from
paddle
import
fluid
from
paddle
import
fluid
from
fleetrec.core.utils
import
fs
as
fs
from
fleet
_
rec.core.utils
import
fs
as
fs
def
save_program_proto
(
path
,
program
=
None
):
def
save_program_proto
(
path
,
program
=
None
):
...
...
fleetrec/run.py
→
fleet
_
rec/run.py
浏览文件 @
28d374d2
...
@@ -3,9 +3,9 @@ import os
...
@@ -3,9 +3,9 @@ import os
import
subprocess
import
subprocess
import
yaml
import
yaml
from
fleetrec.core.factory
import
TrainerFactory
from
fleet
_
rec.core.factory
import
TrainerFactory
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
from
fleetrec.core.utils
import
util
from
fleet
_
rec.core.utils
import
util
engines
=
{}
engines
=
{}
device
=
[
"CPU"
,
"GPU"
]
device
=
[
"CPU"
,
"GPU"
]
...
@@ -123,7 +123,7 @@ def cluster_mpi_engine(args):
...
@@ -123,7 +123,7 @@ def cluster_mpi_engine(args):
def
local_cluster_engine
(
args
):
def
local_cluster_engine
(
args
):
print
(
"launch cluster engine with cluster to run model: {}"
.
format
(
args
.
model
))
print
(
"launch cluster engine with cluster to run model: {}"
.
format
(
args
.
model
))
from
fleetrec.core.engine.local_cluster_engine
import
LocalClusterEngine
from
fleet
_
rec.core.engine.local_cluster_engine
import
LocalClusterEngine
cluster_envs
=
{}
cluster_envs
=
{}
cluster_envs
[
"server_num"
]
=
1
cluster_envs
[
"server_num"
]
=
1
...
@@ -148,7 +148,7 @@ def local_cluster_engine(args):
...
@@ -148,7 +148,7 @@ def local_cluster_engine(args):
def
local_mpi_engine
(
args
):
def
local_mpi_engine
(
args
):
print
(
"launch cluster engine with cluster to run model: {}"
.
format
(
args
.
model
))
print
(
"launch cluster engine with cluster to run model: {}"
.
format
(
args
.
model
))
from
fleetrec.core.engine.local_mpi_engine
import
LocalMPIEngine
from
fleet
_
rec.core.engine.local_mpi_engine
import
LocalMPIEngine
print
(
"use 1X1 MPI ClusterTraining at localhost to run model: {}"
.
format
(
args
.
model
))
print
(
"use 1X1 MPI ClusterTraining at localhost to run model: {}"
.
format
(
args
.
model
))
...
...
fleetrec/tests/__init__.py
→
fleet
_
rec/tests/__init__.py
浏览文件 @
28d374d2
文件已移动
models/rank/criteo_reader.py
浏览文件 @
28d374d2
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
# limitations under the License.
# limitations under the License.
from
__future__
import
print_function
from
__future__
import
print_function
from
fleetrec.core.reader
import
Reader
from
fleet
_
rec.core.reader
import
Reader
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
class
TrainReader
(
Reader
):
class
TrainReader
(
Reader
):
...
...
models/rank/dnn/model.py
浏览文件 @
28d374d2
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
import
math
import
math
import
paddle.fluid
as
fluid
import
paddle.fluid
as
fluid
from
fleetrec.core.utils
import
envs
from
fleet
_
rec.core.utils
import
envs
from
fleetrec.core.model
import
Model
as
ModelBase
from
fleet
_
rec.core.model
import
Model
as
ModelBase
class
Model
(
ModelBase
):
class
Model
(
ModelBase
):
...
...
setup.py
浏览文件 @
28d374d2
...
@@ -10,13 +10,13 @@ import shutil
...
@@ -10,13 +10,13 @@ import shutil
if
sys
.
version_info
.
major
==
2
:
if
sys
.
version_info
.
major
==
2
:
requires
=
[
requires
=
[
"paddlepaddle == 1.7.2"
,
"paddlepaddle == 1.7.2"
,
# "netron >= 0.0.0",
# "netron >= 0.0.0",
"pyyaml >= 5.1.1"
"pyyaml >= 5.1.1"
]
]
else
:
else
:
requires
=
[
requires
=
[
"paddlepaddle >= 0.0.0"
,
"paddlepaddle >= 0.0.0"
,
# "netron >= 0.0.0",
# "netron >= 0.0.0",
"pyyaml >= 5.1.1"
"pyyaml >= 5.1.1"
]
]
...
@@ -40,12 +40,14 @@ def build(dirname):
...
@@ -40,12 +40,14 @@ def build(dirname):
print
(
dirname
)
print
(
dirname
)
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
run_cmd
(
"cp -r {}/* {}"
.
format
(
package_dir
,
dirname
))
run_cmd
(
"cp -r {}/* {}"
.
format
(
package_dir
,
dirname
))
run_cmd
(
"mkdir {}"
.
format
(
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {}/* {}"
.
format
(
os
.
path
.
join
(
dirname
,
"fleet_rec"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"demo"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"demo"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"doc"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"doc"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"models"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"models"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"tools"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
run_cmd
(
"mv {} {}"
.
format
(
os
.
path
.
join
(
dirname
,
"tools"
),
os
.
path
.
join
(
dirname
,
"fleetrec"
)))
packages
=
find_packages
(
dirname
)
packages
=
find_packages
(
dirname
,
include
=
(
'fleetrec.*'
)
)
package_dir
=
{
''
:
dirname
}
package_dir
=
{
''
:
dirname
}
setup
(
setup
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录