mirror of https://github.com/llvm/torch-mlir
parent
8d4f4cb104
commit
b457b051db
|
@ -44,10 +44,12 @@ dtypeFunctionArgsBuilder(OpBuilder &b, Location loc,
|
|||
|
||||
SmallVector<Value> dtypeFuncArgs;
|
||||
ArrayRef<Type> desiredTypes = dtypeFunc.getArgumentTypes();
|
||||
for (auto operand : originalOperands) {
|
||||
for (Value operand : originalOperands) {
|
||||
assert(!desiredTypes.empty() &&
|
||||
"`dtypeFunc` should have at least one argument for each argument in "
|
||||
"`originalOperands`");
|
||||
// Getting hold of desired types and accordingly adjusting function
|
||||
// arguments
|
||||
Type desiredType = desiredTypes.front();
|
||||
FailureOr<Value> otherArg;
|
||||
if (failed(otherArg = adjustFunctionArg(b, loc, operand, desiredType,
|
||||
|
|
Loading…
Reference in New Issue