Skip to content

Commit

Permalink
refactor(ONNX): renames operandType to some1DTensorType in `getVa…
Browse files Browse the repository at this point in the history
…lueList` helper

- `operandType`: "operand" is the given tensor
- `castedGiven1DTensorType`: can be renamed as validated generic
- `some1DTensorType`: meaning "type of some 1D tensor"
  • Loading branch information
bjacobgordon committed Feb 6, 2025
1 parent 662f182 commit 6043331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Conversion/TorchOnnxToTorch/DefaultDomainQtoZ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ Value getValueList(
/* movingForwardsThrough */ Value given1DTensor,
/* startingAt */ int64_t givenIndex,
/* using */ ConversionPatternRewriter &rewriter) {
auto operandType = cast<Torch::BaseTensorType>(given1DTensor.getType());
auto sizes = operandType.getSizes();
auto some1DTensorType = cast<Torch::BaseTensorType>(given1DTensor.getType());
auto sizes = some1DTensorType.getSizes();
auto lengthOfFullList = sizes[0];

SmallVector<Value> runningScalarSublist;
Expand Down

0 comments on commit 6043331

Please sign in to comment.