Skip to content

Commit

Permalink
revert unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Idan-BenAmi committed Sep 17, 2024
1 parent 2f28945 commit 3d3d294
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions model_compression_toolkit/core/pytorch/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@
IN_FEATURES = 'in_features'
OUT_FEATURES = 'out_features'

# # Reserved layer names
RESERVED_NAME_TO = 'to'
RESERVED_NAME_SUFFIX = 'node'

# torch devices
CUDA = 'cuda'
CPU = 'cpu'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
from model_compression_toolkit.core.common.graph.edge import Edge
from model_compression_toolkit.core.common.graph.functional_node import FunctionalNode
from model_compression_toolkit.core.pytorch.constants import OUTPUT, PLACEHOLDER, TENSOR_META, CALL_FUNCTION, TYPE, \
CALL_METHOD, BIAS, FUNCTIONAL_OP, OP_CALL_KWARGS, OP_CALL_ARGS, INPUTS_AS_LIST, TENSOR_INPUT_ALLOCS, GET_ATTR, \
RESERVED_NAME_TO, RESERVED_NAME_SUFFIX
CALL_METHOD, BIAS, FUNCTIONAL_OP, OP_CALL_KWARGS, OP_CALL_ARGS, INPUTS_AS_LIST, TENSOR_INPUT_ALLOCS, GET_ATTR
from model_compression_toolkit.core.pytorch.reader.node_holders import DummyPlaceHolder
from model_compression_toolkit.logger import Logger

Expand Down Expand Up @@ -285,9 +284,6 @@ def nodes_builder(model: GraphModule,
graph_node_type = BaseNode
kwargs = {}

if node.name == RESERVED_NAME_TO:
node.name = node.name + RESERVED_NAME_SUFFIX

graph_node = graph_node_type(name=node.name,
framework_attr=framework_attr,
input_shape=input_shape,
Expand Down

0 comments on commit 3d3d294

Please sign in to comment.