mirror of https://github.com/llvm/torch-mlir
Minor change in TMTensorOps.td (#3602)
Fixed a little programming choice style that bothered me.pull/3604/head
parent
4a0bed0ce0
commit
1c16de147a
|
@ -373,9 +373,8 @@ def TMTensor_TopkOp : TMTensor_Op<"topk",
|
|||
std::optional<Value> indices() {
|
||||
if (getNumInputs() < 2) {
|
||||
return {};
|
||||
} else {
|
||||
return getInputOperand(1)->get();
|
||||
}
|
||||
return getInputOperand(1)->get();
|
||||
}
|
||||
Value outputValues() {
|
||||
return getOutputOperand(0)->get();
|
||||
|
|
Loading…
Reference in New Issue