Skip to content

Commit 0f783da

Browse files
committed
docs(aten::zeros): Add some comments
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 8f9f041 commit 0f783da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/conversion/evaluators/aten.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ auto aten_registrations TRTORCH_UNUSED =
120120
[](const torch::jit::Node* n, kwargs& args) -> c10::optional<torch::jit::IValue> {
121121
auto options = torch::TensorOptions().layout(torch::kStrided).device(torch::kCUDA);
122122

123+
// Input 1 here is the dtype
123124
if (!args.at(n->input(1)).isNone() && !args.at(n->input(1)).IValue()->isNone()) {
124125
options = options.dtype(c10::ScalarType(args.at(n->input(1)).unwrapToInt()));
125126
}

0 commit comments

Comments
 (0)