We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9f041 commit 0f783daCopy full SHA for 0f783da
core/conversion/evaluators/aten.cpp
@@ -120,6 +120,7 @@ auto aten_registrations TRTORCH_UNUSED =
120
[](const torch::jit::Node* n, kwargs& args) -> c10::optional<torch::jit::IValue> {
121
auto options = torch::TensorOptions().layout(torch::kStrided).device(torch::kCUDA);
122
123
+ // Input 1 here is the dtype
124
if (!args.at(n->input(1)).isNone() && !args.at(n->input(1)).IValue()->isNone()) {
125
options = options.dtype(c10::ScalarType(args.at(n->input(1)).unwrapToInt()));
126
}
0 commit comments