Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def create_input_vars(
torch_dtype = exported_program.tensor_constants[spec.target].dtype
elif spec.kind is torch.export.graph_signature.InputKind.USER_INPUT:
for node in exported_program.graph.find_nodes(op="placeholder", target=spec.target):
if node.name == name_hint:
if node.name == name_hint and "tensor_meta" in node.meta:
shape = node.meta["tensor_meta"].shape
torch_dtype = node.meta["tensor_meta"].dtype
break
Expand Down