fix/feat: Add lowering pass to resolve most aten::Int.Tensor uses by gs-olive · Pull Request #1937 · pytorch/TensorRT (original) (raw)

gs-olive

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #1880
Fixes #1836
Fixes #513

Type of change

Checklist:

@gs-olive gs-olive changed the titlefix/feat: Add lowering pass to resolve aten::Int.Tensor fix/feat: Add lowering pass to resolve most aten::Int.Tensor invocations

May 19, 2023

@gs-olive gs-olive changed the titlefix/feat: Add lowering pass to resolve most aten::Int.Tensor invocations fix/feat: Add lowering pass to resolve most aten::Int.Tensor uses

May 19, 2023

@gs-olive

narendasan

gs-olive

torch::jit::aten::floor_divide,
};
c10::optionaltorch::jit::Value\* Validate0DTensor(torch::jit::Value* value) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactored to use c10::optional wrapper instead of nullptr + replaced pointer checks with .has_value()

@gs-olive

narendasan

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gs-olive gs-olive deleted the replace_aten_int_schema branch

May 30, 2023 21:54

narendasan pushed a commit that referenced this pull request

Jun 2, 2023

@gs-olive @narendasan

narendasan pushed a commit that referenced this pull request

Jun 2, 2023

@gs-olive @narendasan

narendasan pushed a commit that referenced this pull request

Jun 3, 2023

@gs-olive @narendasan