summaryrefslogtreecommitdiffstats
path: root/eval/src/tests/instruction/generic_concat
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-03-04 08:17:36 +0000
committerArne Juul <arnej@verizonmedia.com>2021-03-04 12:34:54 +0000
commit4ea4b7e39a13bd646d69100cddfb855eb3c49d5b (patch)
tree7f57479792b8c79ea683aaec1227217895e23637 /eval/src/tests/instruction/generic_concat
parentc0bf10ced1d8a5a5d64b92377e46a13ca53e632f (diff)
send result type as first arg to all make_instruction methods
Diffstat (limited to 'eval/src/tests/instruction/generic_concat')
-rw-r--r--eval/src/tests/instruction/generic_concat/generic_concat_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval/src/tests/instruction/generic_concat/generic_concat_test.cpp b/eval/src/tests/instruction/generic_concat/generic_concat_test.cpp
index 8bf6751cd73..6b6a803a4b1 100644
--- a/eval/src/tests/instruction/generic_concat/generic_concat_test.cpp
+++ b/eval/src/tests/instruction/generic_concat/generic_concat_test.cpp
@@ -68,7 +68,8 @@ TensorSpec perform_generic_concat(const TensorSpec &a, const TensorSpec &b,
Stash stash;
auto lhs = value_from_spec(a, factory);
auto rhs = value_from_spec(b, factory);
- auto my_op = GenericConcat::make_instruction(lhs->type(), rhs->type(), concat_dim, factory, stash);
+ auto res_type = ValueType::concat(lhs->type(), rhs->type(), concat_dim);
+ auto my_op = GenericConcat::make_instruction(res_type, lhs->type(), rhs->type(), concat_dim, factory, stash);
InterpretedFunction::EvalSingle single(factory, my_op);
return spec_from_value(single.eval(std::vector<Value::CREF>({*lhs,*rhs})));
}