Skip to content

Commit

Permalink
Get rid of the typeguard dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkarras committed Feb 8, 2019
1 parent 8a7ef7c commit 3aa665d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dnnlib/submission/submit.py
@@ -1,4 +1,4 @@
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# This work is licensed under the Creative Commons Attribution-NonCommercial
# 4.0 International License. To view a copy of this license, visit
Expand All @@ -18,7 +18,6 @@
import shutil
import time
import traceback
import typeguard

import zipfile

Expand Down Expand Up @@ -63,7 +62,6 @@ class SubmitConfig(util.EasyDict):
num_gpus: Number of GPUs used/requested for the run.
print_info: Whether to print debug information when submitting.
ask_confirmation: Whether to ask a confirmation before submitting.
use_typeguard: Whether to use the typeguard module for run-time type checking (slow!).
run_id: Automatically populated value during submit.
run_name: Automatically populated value during submit.
run_dir: Automatically populated value during submit.
Expand All @@ -88,7 +86,6 @@ def __init__(self):
self.num_gpus = 1
self.print_info = False
self.ask_confirmation = False
self.use_typeguard = False

# (automatically populated)
self.run_id = None
Expand Down Expand Up @@ -230,10 +227,6 @@ def run_wrapper(submit_config: SubmitConfig) -> None:

checker = None

if submit_config.use_typeguard:
checker = typeguard.TypeChecker("dnnlib")
checker.start()

# when running locally, redirect stderr to stdout, log stdout to a file, and force flushing
if is_local:
logger = util.Logger(file_name=os.path.join(submit_config.run_dir, "log.txt"), file_mode="w", should_flush=True)
Expand Down

0 comments on commit 3aa665d

Please sign in to comment.