File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 49
49
"recipes_source/recipes/Captum_Recipe" ,
50
50
"intermediate_source/flask_rest_api_tutorial" ,
51
51
"intermediate_source/text_to_speech_with_torchaudio" ,
52
- "intermediate_source/ax_multiobjective_nas_tutorial" ,
53
52
"intermediate_source/tensorboard_profiler_tutorial" # reenable after 2.0 release.
54
53
]
55
54
Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ def parse_args():
44
44
args = parse_args ()
45
45
46
46
PATH_DATASETS = os .environ .get ("PATH_DATASETS" , "." )
47
- AVAIL_GPUS = min (1 , torch .cuda .device_count ())
48
47
49
48
50
49
class MnistModel (LightningModule ):
@@ -136,7 +135,6 @@ def run_training_job():
136
135
# Initialize a trainer (don't log anything since things get so slow...)
137
136
trainer = Trainer (
138
137
logger = False ,
139
- gpus = AVAIL_GPUS ,
140
138
max_epochs = args .epochs ,
141
139
enable_progress_bar = False ,
142
140
deterministic = True , # Do we want a bit of noise?
Original file line number Diff line number Diff line change 604
604
data_view = tensordict_data .reshape (- 1 )
605
605
replay_buffer .extend (data_view .cpu ())
606
606
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 )
608
608
loss_vals = loss_module (subdata .to (device ))
609
609
loss_value = (
610
610
loss_vals ["loss_objective" ]
You can’t perform that action at this time.
0 commit comments