Unverified Commit fde4867f authored by Thomas Wang's avatar Thomas Wang Committed by GitHub
Browse files

Fix passing None as concrete args (#14022)

parent 9eda0d15
......@@ -358,6 +358,9 @@ class HFTracer(Tracer):
return attr_val
def trace(self, root: PreTrainedModel, concrete_args: Optional[Dict[str, Any]] = None, method_names=None) -> Graph:
if concrete_args is None:
concrete_args = {}
sig = inspect.signature(root.forward)
input_names = sig.parameters.keys() - concrete_args.keys()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment