Skip to content

Commit

Permalink
remove unecessary function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xida Ren committed Apr 8, 2024
1 parent b1f39db commit 1228fd8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions python/torch_mlir/extras/onnx_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,6 @@ def tensor_proto_to_attr(self, tp: onnx.TensorProto) -> Attribute:
# Ommitted: STRING,
}

def graph_attribute_handler(attr: onnx.AttributeProto, cc: ContextCache) -> Attribute:
"""Handles a Graph attribute."""
print(dir(attr))
print(cc)
raise OnnxImportError("Graph attributes not supported yet")

# Mapping of AttributeType code to one of:
# None: Ignore attribute and do not output to MLIR
# False: Error if an attribute of this type is present
Expand Down

0 comments on commit 1228fd8

Please sign in to comment.