Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup][B-20] Replace to_variable with to_tensor #61546

Merged
merged 8 commits into from
Feb 19, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update python/paddle/nn/layer/layers.py
  • Loading branch information
SigureMo authored Feb 4, 2024
commit ffcebb05b90b1774045ffc520559162fac141146
2 changes: 1 addition & 1 deletion python/paddle/nn/layer/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _multiple_input(self, inputs_in):
for inp in inputs:
ret.append(paddle.to_tensor(inp))
SigureMo marked this conversation as resolved.
Show resolved Hide resolved
else:
ret.append(paddle.to_tensor(inputs))
ret.append(self.to_variable(inputs))
return ret

# TODO: make it public when we need it
Expand Down