提交 37a77dcd 编写于 作者: X xjqbest

fix

上级 f4c323f5
...@@ -12,10 +12,6 @@ ...@@ -12,10 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# num of epochs
epochs: 10
# device to run training or infer
device: cpu
# workspace # workspace
workspace: "paddlerec.models.rank.dnn" workspace: "paddlerec.models.rank.dnn"
...@@ -30,7 +26,7 @@ dataset: ...@@ -30,7 +26,7 @@ dataset:
- name: dataset_infer # name - name: dataset_infer # name
batch_size: 2 batch_size: 2
type: DataLoader # or QueueDataset type: DataLoader # or QueueDataset
data_path: "{workspace}/data/sample_data/test" data_path: "{workspace}/data/sample_data/train"
sparse_slots: "click 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26" sparse_slots: "click 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26"
dense_slots: "dense_var:13" dense_slots: "dense_var:13"
...@@ -55,15 +51,23 @@ mode: runner1 ...@@ -55,15 +51,23 @@ mode: runner1
runner: runner:
- name: runner1 - name: runner1
class: single_train class: single_train
# num of epochs
epochs: 10
# device to run training or infer
device: cpu
save_checkpoint_interval: 2 # save model interval of epochs save_checkpoint_interval: 2 # save model interval of epochs
save_inference_interval: 4 # save inference save_inference_interval: 4 # save inference
save_checkpoint_path: "increment" # save checkpoint path save_checkpoint_path: "increment" # save checkpoint path
save_inference_path: "inference" # save inference path save_inference_path: "inference" # save inference path
# save_inference_feed_varnames: [] # feed vars of save inference save_inference_feed_varnames: [] # feed vars of save inference
# save_inference_fetch_varnames: [] # fetch vars of save inference save_inference_fetch_varnames: [] # fetch vars of save inference
# init_model_path: "xxxx" # load model path init_model_path: "" # load model path
- name: runner2 - name: runner2
class: single_infer class: single_infer
# num of epochs
epochs: 10
# device to run training or infer
device: cpu
init_model_path: "increment/0" # load model path init_model_path: "increment/0" # load model path
# runner will run all the phase in each epoch # runner will run all the phase in each epoch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册