assert(_return_fn); // _return_fn must have been generated
ret->append(std::move(_return_fn));
- for (const auto &&ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs())
+ for (const auto &ind : (op.getInputs() | ir::Remove::UNDEFINED) + op.getOutputs())
{
auto portable_tensor = _tensor_reg->getPortableTensor(ind);
if (portable_tensor)
const auto op_layout = op_li->layout();
const backend::Backend *backend = op_li->backend();
assert(backend);
- const auto &use_node_inputs = operation.getInputs();
- assert(use_node_inputs.contains(index));
auto new_index = factor_to_index.at({backend, op_layout});
if (index != new_index)