Skip to content

Commit d48d7a9

Browse files
Arm backend: Remove use of TOSA_DBG_VERBOSE (#9901)
Environment variable TOSA_DBG_VERBOSE was used to determine and setting the logging levels inside ArmBackend. This patch removes all uses of that variable. Signed-off-by: Oscar Andersson <[email protected]>
1 parent b367540 commit d48d7a9

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

backends/arm/tosa_backend.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# JIT compiler flows.
1212
#
1313
import logging
14-
import os
1514
from typing import cast, final, List
1615

1716
import serializer.tosa_serializer as ts # type: ignore
@@ -34,10 +33,6 @@
3433

3534
# TOSA backend debug functionality
3635
logger = logging.getLogger(__name__)
37-
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
38-
if TOSA_DBG_VERBOSE:
39-
logging.basicConfig(level=logging.INFO)
40-
logger.setLevel(logging.INFO)
4136

4237

4338
def _get_first_delegation_tag(graph_module) -> str | None:

backends/arm/tosa_partitioner.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# pyre-unsafe
77

88
import logging
9-
import os
109
from typing import Callable, List, Optional, Sequence, Tuple
1110

1211
import torch
@@ -33,11 +32,6 @@
3332

3433

3534
logger = logging.getLogger(__name__)
36-
logger.setLevel(logging.INFO)
37-
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
38-
if TOSA_DBG_VERBOSE:
39-
logging.basicConfig(level=logging.INFO)
40-
logger.setLevel(logging.INFO)
4135

4236

4337
def is_quant_node(node: torch.fx.node.Node) -> bool:

backends/arm/tosa_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
from torch.fx import Node
2020

2121
logger = logging.getLogger(__name__)
22-
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
23-
if TOSA_DBG_VERBOSE:
24-
logging.basicConfig(level=logging.INFO)
25-
logger.setLevel(logging.INFO)
2622

2723

2824
def dbg_node(node: torch.fx.Node, graph_module: torch.fx.GraphModule):

0 commit comments

Comments
 (0)