// TODO Remove this assumption
const auto operand_index = execution->plan().model().inputs.at(index);
- if (operands.at(operand_index).shape().rank() == 2)
+ if (operands.at(operand_index).shape().rank() == 1)
+ {
+ const auto len = operands.at(operand_index).shape().dim(0);
+
+ execution->source<VectorSource>(index, len, reinterpret_cast<const uint8_t *>(buffer), length);
+ }
+ else if (operands.at(operand_index).shape().rank() == 2)
{
assert(operands.at(operand_index).shape().dim(0) == 1);
const auto operand_index = execution->plan().model().outputs.at(index);
- if ((operands.at(operand_index).shape().rank() == 2) &&
- (operands.at(operand_index).shape().dim(0) == 1))
+ if (operands.at(operand_index).shape().rank() == 1)
+ {
+ const auto len = operands.at(operand_index).shape().dim(0);
+
+ execution->sink<VectorSink>(index, len, reinterpret_cast<uint8_t *>(buffer), length);
+ }
+ else if ((operands.at(operand_index).shape().rank() == 2) &&
+ (operands.at(operand_index).shape().dim(0) == 1))
{
const auto len = operands.at(operand_index).shape().dim(1);