Skip to content

Commit 4ce8d69

Browse files
committed
fix unnecesary changes
1 parent 7c1e12c commit 4ce8d69

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

nncf/common/quantization/config_assignment.py

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def assign_qconfig_lists_to_modules(
8080
scope_overrides_dict = {}
8181
weight_scope_overrides_dict = scope_overrides_dict.get("weights")
8282
if hw_config is not None:
83-
print(hw_config)
8483
meta_vs_qconfig_map = hw_config.get_metatype_vs_quantizer_configs_map(for_weights=True)
8584
for node in nodes_with_weights:
8685
qconfig_for_current_scope = get_scoped_quantizer_config(

nncf/torch/dynamic_graph/trace_tensor.py

-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ def from_torch_tensor(tensor: torch.Tensor, tensor_meta: Optional[TensorMeta] =
117117
:param tensor_meta: The metadata associated with the tensor.
118118
:return: The resulting TracedTensor.
119119
"""
120-
if(tensor.dim() == 0):
121-
tensor = torch.tensor([tensor])
122120
return TracedTensor.patch(tensor, tensor_meta)
123121

124122
def as_subclass(self, cls: "TracedTensor") -> "TracedTensor":

0 commit comments

Comments
 (0)