From 17e9202cfa6511144f651f1b5846a4b10e6f7f5d Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Fri, 1 Oct 2021 14:33:33 -0700 Subject: Fix CONST test. Signed-off-by: Kevin Cheng Change-Id: Iea91076f3e0673ce5adfcca247d968416023fa58 --- verif/tosa_test_gen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/verif/tosa_test_gen.py b/verif/tosa_test_gen.py index 7b71cf4..2384e03 100644 --- a/verif/tosa_test_gen.py +++ b/verif/tosa_test_gen.py @@ -2041,9 +2041,9 @@ class TosaTestGen: ) return result_tens - def build_placeholder(self, op, val): - # Add an identity op to avoid warning in the reference model - return self.build_unary(Op.IDENTITY, val) + def build_const(self, op, val): + self.ser.addOutputTensor(val) + return val # Type Conversion def build_cast(self, op, val, out_dtype): @@ -3200,8 +3200,8 @@ class TosaTestGen: # Data nodes "const": { "op": Op.CONST, - "operands": (1, 0), - "build_fcn": (build_placeholder, TosaTensorGen.tgBasic, None), + "operands": (0, 1), + "build_fcn": (build_const, TosaTensorGen.tgBasic, None), "types": TYPE_FIB, }, "identity": { -- cgit v1.2.1