Skip to content

Commit eff6da2

Browse files
authored
Merge pull request #707 from yinhaofeng/use_xpu
use_xpu
2 parents 4cad341 + 52230c2 commit eff6da2

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

doc/source/paddlerec/yaml.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| infer_start_epoch | int | >= 0 || 初始化模型时从第几个epoch保留的参数开始加载(从0开始计数,包括本次) |
1818
| infer_end_epoch | int | >= 0 || 初始化模型时到第几个epoch保留的参数停止加载(从0开始技术,不包括本次) |
1919
| use_gpu | bool | True/False || 指定是否使用gpu,若为False则默认使用cpu |
20+
| use_xpu | bool | True/False || 指定是否使用xpu,若为False则默认使用cpu |
2021
| epochs | int | >= 1 || 指定train阶段需要训练几个epoch |
2122
| print_interval | int | >= 1 || 训练指标打印batch间隔 |
2223
| use_auc | bool | True/False || 在每个epoch开始时重置auc指标的值 |

doc/yaml.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
| infer_start_epoch | int | >= 0 || 初始化模型时从第几个epoch保留的参数开始加载(从0开始计数,包括本次) |
1818
| infer_end_epoch | int | >= 0 || 初始化模型时到第几个epoch保留的参数停止加载(从0开始技术,不包括本次) |
1919
| use_gpu | bool | True/False || 指定是否使用gpu,若为False则默认使用cpu |
20+
| use_xpu | bool | True/False || 指定是否使用xpu,若为False则默认使用cpu |
2021
| epochs | int | >= 1 || 指定train阶段需要训练几个epoch |
2122
| print_interval | int | >= 1 || 训练指标打印batch间隔 |
2223
| use_auc | bool | True/False || 在每个epoch开始时重置auc指标的值 |

models/rank/deepfm/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ runner:
1717
train_data_dir: "data/sample_data/train"
1818
train_reader_path: "criteo_reader" # importlib format
1919
use_gpu: False
20+
use_xpu: False # Enable this option only if you have an xpu device
2021
use_auc: True
2122
train_batch_size: 2
2223
epochs: 3

models/rank/deepfm/config_bigdata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ runner:
1818
train_data_dir: "../../../datasets/criteo/slot_train_data_full"
1919
train_reader_path: "criteo_reader" # importlib format
2020
use_gpu: True
21+
use_xpu: False # Enable this option only if you have an xpu device
2122
use_auc: False
2223
train_batch_size: 512
2324
epochs: 1

models/rank/wide_deep/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ runner:
1818
train_data_dir: "data/sample_data/train"
1919
train_reader_path: "criteo_reader" # importlib format
2020
use_gpu: False
21+
use_xpu: False # Enable this option only if you have an xpu device
2122
use_auc: True
2223
train_batch_size: 50
2324
epochs: 4

models/rank/wide_deep/config_bigdata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ runner:
1919
train_data_dir: "../../../datasets/criteo/slot_train_data_full"
2020
train_reader_path: "criteo_reader" # importlib format
2121
use_gpu: True
22+
use_xpu: False # Enable this option only if you have an xpu device
2223
use_auc: True
2324
train_batch_size: 512
2425
epochs: 4

0 commit comments

Comments
 (0)