8000 [ONNX] Enable test_fill script test by shubhambhokare1 · Pull Request #79555 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[ONNX] Enable test_fill script test #79555

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

Closed
Closed
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
Comment to trigger CI rerun
  • Loading branch information
shubhambhokare1 committed Oct 24, 2022
commit 688460c0d07749529ff119004a12eea1c89cd12c
4 changes: 2 additions & 2 deletions torch/csrc/jit/passes/onnx/remove_inplace_ops_for_onnx.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ Node* addDummyClone(
auto* noneNode = graph->create(prim::Constant);
noneNode->output()->setType(NoneType::get());
// For scripting mode, aten::clone requires input to be a TensorType
// Hence if we encounter an IntType or FloatType, we set the input
// to the appropriate TensorType
// Hence if we encounter an IntType, FloatType, or BoolType,
// we set the input to the appropriate TensorType
if (orig_data->type()->kind() == TypeKind::IntType &&
insertBefore == false) {
orig_data->setType(TensorType::fromNumberType(*IntType::get()));
Expand Down
0