Skip to content

Commit

Permalink
fix type for log_gpu_memory (#6031)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikb11 authored Feb 17, 2021
1 parent 443ccf1 commit e01446c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import os
from copy import deepcopy
from pprint import pprint
from typing import Dict, Iterable, Union
from typing import Dict, Iterable, Optional, Union

import torch

Expand All @@ -32,7 +32,7 @@

class LoggerConnector:

def __init__(self, trainer, log_gpu_memory: bool):
def __init__(self, trainer, log_gpu_memory: Optional[str] = None):
self.trainer = trainer
self.log_gpu_memory = log_gpu_memory
self._callback_metrics = MetricsHolder()
Expand Down

0 comments on commit e01446c

Please sign in to comment.