Skip to content

Commit a104f6d

Browse files
author
Svetlana Karslioglu
authored
Merge branch 'main' into shape_tutorial
2 parents d4c8623 + eb29468 commit a104f6d

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.jenkins/validate_tutorials_built.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"recipes_source/recipes/Captum_Recipe",
5050
"intermediate_source/flask_rest_api_tutorial",
5151
"intermediate_source/text_to_speech_with_torchaudio",
52-
"intermediate_source/ax_multiobjective_nas_tutorial",
5352
"intermediate_source/tensorboard_profiler_tutorial" # reenable after 2.0 release.
5453
]
5554

intermediate_source/mnist_train_nas.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def parse_args():
4444
args = parse_args()
4545

4646
PATH_DATASETS = os.environ.get("PATH_DATASETS", ".")
47-
AVAIL_GPUS = min(1, torch.cuda.device_count())
4847

4948

5049
class MnistModel(LightningModule):
@@ -136,7 +135,6 @@ def run_training_job():
136135
# Initialize a trainer (don't log anything since things get so slow...)
137136
trainer = Trainer(
138137
logger=False,
139-
gpus=AVAIL_GPUS,
140138
max_epochs=args.epochs,
141139
enable_progress_bar=False,
142140
deterministic=True, # Do we want a bit of noise?

intermediate_source/reinforcement_ppo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
data_view = tensordict_data.reshape(-1)
605605
replay_buffer.extend(data_view.cpu())
606606
for _ in range(frames_per_batch // sub_batch_size):
607-
subdata, *_ = replay_buffer.sample(sub_batch_size)
607+
subdata = replay_buffer.sample(sub_batch_size)
608608
loss_vals = loss_module(subdata.to(device))
609609
loss_value = (
610610
loss_vals["loss_objective"]

0 commit comments

Comments
 (0)