From 8255fba727995688ed43c39e9d616b23d3a30737 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 2 Apr 2020 02:29:39 +0000 Subject: [PATCH] fix package --- .gitignore | 1 + examples/train.py | 8 +++++++- metrics/__init__.py | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 metrics/__init__.py diff --git a/.gitignore b/.gitignore index cfa88408..bf472b1e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ output .idea/ *~ +*.pyc diff --git a/examples/train.py b/examples/train.py index 487ce6fe..c91b2f45 100644 --- a/examples/train.py +++ b/examples/train.py @@ -24,13 +24,19 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os + import yaml -from .. trainer.factory import TrainerFactory +from eleps.trainer.factory import TrainerFactory if __name__ == "__main__": with open('ctr-dnn_train.yaml', 'r') as rb: global_config = yaml.load(rb.read()) + print global_config + + os.exit() + trainer = TrainerFactory.create(global_config) trainer.run() diff --git a/metrics/__init__.py b/metrics/__init__.py new file mode 100755 index 00000000..abf198b9 --- /dev/null +++ b/metrics/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2020 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. -- GitLab