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
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ def new_zeros(self, inputs, input_types):
dtype = _convert_dtype_value(inputs[2])
else:
# if dtype is None, use the dtype of the input tensor
dtype = self.infer_type(inputs[0])
dtype = self.infer_type(inputs[0]).dtype
return self.full_impl(data, 0, dtype)

def full(self, inputs, input_types):
Expand Down Expand Up @@ -898,7 +898,7 @@ def new_full(self, inputs, input_types):
dtype = _convert_dtype_value(inputs[3])
else:
# if dtype is None, use the dtype of the input tensor
dtype = self.infer_type(inputs[0])
dtype = self.infer_type(inputs[0]).dtype

return self.full_impl(data, fill_value, dtype)

Expand Down