aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/instruction/generic_join
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_join
parentc0bf10ced1d8a5a5d64b92377e46a13ca53e632f (diff)
send result type as first arg to all make_instruction methods
Diffstat (limited to 'eval/src/tests/instruction/generic_join')
-rw-r--r--eval/src/tests/instruction/generic_join/generic_join_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval/src/tests/instruction/generic_join/generic_join_test.cpp b/eval/src/tests/instruction/generic_join/generic_join_test.cpp
index 2f619bcaa54..114881e6bee 100644
--- a/eval/src/tests/instruction/generic_join/generic_join_test.cpp
+++ b/eval/src/tests/instruction/generic_join/generic_join_test.cpp
@@ -55,7 +55,8 @@ TensorSpec perform_generic_join(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 = GenericJoin::make_instruction(lhs->type(), rhs->type(), function, factory, stash);
+ auto res_type = ValueType::join(lhs->type(), rhs->type());
+ auto my_op = GenericJoin::make_instruction(res_type, lhs->type(), rhs->type(), function, factory, stash);
InterpretedFunction::EvalSingle single(factory, my_op);
return spec_from_value(single.eval(std::vector<Value::CREF>({*lhs,*rhs})));
}