Skip to content

Arm backend: Remove use of TOSA_DBG_VERBOSE #9901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions backends/arm/tosa_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# JIT compiler flows.
#
import logging
import os
from typing import cast, final, List

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

# TOSA backend debug functionality
logger = logging.getLogger(__name__)
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
if TOSA_DBG_VERBOSE:
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)


def _get_first_delegation_tag(graph_module) -> str | None:
Expand Down
6 changes: 0 additions & 6 deletions backends/arm/tosa_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# pyre-unsafe

import logging
import os
from typing import Callable, List, Optional, Sequence, Tuple

import torch
Expand All @@ -33,11 +32,6 @@


logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
if TOSA_DBG_VERBOSE:
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)


def is_quant_node(node: torch.fx.node.Node) -> bool:
Expand Down
4 changes: 0 additions & 4 deletions backends/arm/tosa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
from torch.fx import Node

logger = logging.getLogger(__name__)
TOSA_DBG_VERBOSE = os.environ.get("TOSA_DBG_VERBOSE") == "1"
if TOSA_DBG_VERBOSE:
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)


def dbg_node(node: torch.fx.Node, graph_module: torch.fx.GraphModule):
Expand Down
Loading