Skip to content

Commit 299526d

Browse files
authored
Merge pull request #14 from DeepRec-AI/main
Get latest code.
2 parents 820c574 + d1c5a6e commit 299526d

53 files changed

Lines changed: 1160 additions & 140 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/docs_en/.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/docs_en/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
# formats:
27+
# - pdf
28+
# - epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/docs_en/requirements.txt

docs/docs_zh/.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/docs_zh/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
# formats:
27+
# - pdf
28+
# - epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: docs/docs_zh/requirements.txt

modelzoo/bst/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,9 @@ def train(sess_config,
612612
hooks = []
613613
hooks.extend(input_hooks)
614614

615-
sharded_saver = tf_config != None
616615
scaffold = tf.train.Scaffold(
617616
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
618-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
617+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
619618

620619
stop_hook = tf.train.StopAtStepHook(last_step=steps)
621620
log_hook = tf.train.LoggingTensorHook(

modelzoo/dbmtl/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,9 @@ def train(sess_config,
527527
hooks = []
528528
hooks.extend(input_hooks)
529529

530-
sharded_saver = tf_config != None
531530
scaffold = tf.train.Scaffold(
532531
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
533-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
532+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
534533

535534
stop_hook = tf.train.StopAtStepHook(last_step=steps)
536535
log_hook = tf.train.LoggingTensorHook(

modelzoo/dcn/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,9 @@ def train(sess_config,
594594
hooks = []
595595
hooks.extend(input_hooks)
596596

597-
sharded_saver = tf_config != None
598597
scaffold = tf.train.Scaffold(
599598
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
600-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
599+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
601600

602601
stop_hook = tf.train.StopAtStepHook(last_step=steps)
603602
log_hook = tf.train.LoggingTensorHook(

modelzoo/dcnv2/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,9 @@ def train(sess_config,
610610
hooks = []
611611
hooks.extend(input_hooks)
612612

613-
sharded_saver = tf_config != None
614613
scaffold = tf.train.Scaffold(
615614
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
616-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
615+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
617616

618617
stop_hook = tf.train.StopAtStepHook(last_step=steps)
619618
log_hook = tf.train.LoggingTensorHook(

modelzoo/deepfm/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,9 @@ def train(sess_config,
472472
hooks = []
473473
hooks.extend(input_hooks)
474474

475-
sharded_saver = tf_config != None
476475
scaffold = tf.train.Scaffold(
477476
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
478-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
477+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
479478

480479
stop_hook = tf.train.StopAtStepHook(last_step=steps)
481480
log_hook = tf.train.LoggingTensorHook(

modelzoo/dien/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,10 +776,9 @@ def train(sess_config,
776776
hooks = []
777777
hooks.extend(input_hooks)
778778

779-
sharded_saver = tf_config != None
780779
scaffold = tf.train.Scaffold(
781780
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
782-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
781+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
783782

784783
stop_hook = tf.train.StopAtStepHook(last_step=steps)
785784
log_hook = tf.train.LoggingTensorHook(

modelzoo/din/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,9 @@ def train(sess_config,
594594
hooks = []
595595
hooks.extend(input_hooks)
596596

597-
sharded_saver = tf_config != None
598597
scaffold = tf.train.Scaffold(
599598
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
600-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
599+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
601600

602601
stop_hook = tf.train.StopAtStepHook(last_step=steps)
603602
log_hook = tf.train.LoggingTensorHook(

modelzoo/dlrm/train.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,9 @@ def train(sess_config,
507507
hooks = []
508508
hooks.extend(input_hooks)
509509

510-
sharded_saver = tf_config != None
511510
scaffold = tf.train.Scaffold(
512511
local_init_op=tf.group(tf.local_variables_initializer(), data_init_op),
513-
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=sharded_saver))
512+
saver=tf.train.Saver(max_to_keep=args.keep_checkpoint_max, sharded=True))
514513

515514
stop_hook = tf.train.StopAtStepHook(last_step=steps)
516515
log_hook = tf.train.LoggingTensorHook(

0 commit comments

Comments
 (0)