Skip to content

Commit 10566e3

Browse files
author
Ricardo Decal
committed
Remove Ray initialization from hyperparameter tuning tutorial and update code block formatting from text to bash.
1 parent 352ad9b commit 10566e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

beginner_source/hyperparameter_tuning_tutorial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ def test_accuracy(net, device="cpu"):
452452

453453
def main(num_trials=10, max_num_epochs=10, gpus_per_trial=2):
454454
print("Starting hyperparameter tuning.")
455-
ray.init(include_dashboard=False, runtime_env={"RAY_enable_open_telemetry": "0"})
456455

457456
data_dir = os.path.abspath("./data")
458457
load_data(data_dir)
@@ -514,7 +513,7 @@ def main(num_trials=10, max_num_epochs=10, gpus_per_trial=2):
514513
######################################################################
515514
# If you run the code, an example output could look like this:
516515
#
517-
# .. code-block:: text
516+
# .. code-block:: bash
518517
#
519518
# Number of trials: 10/10 (10 TERMINATED)
520519
# +-----+--------------+------+------+-------------+--------+---------+------------+

0 commit comments

Comments
 (0)