aboutsummaryrefslogtreecommitdiff
path: root/tests/validation_new/SimpleTensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation_new/SimpleTensor.h')
-rw-r--r--tests/validation_new/SimpleTensor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/validation_new/SimpleTensor.h b/tests/validation_new/SimpleTensor.h
index 6392e38e25..61d6f1cd04 100644
--- a/tests/validation_new/SimpleTensor.h
+++ b/tests/validation_new/SimpleTensor.h
@@ -127,6 +127,9 @@ public:
/** Number of elements of the tensor. */
int num_elements() const override;
+ /** Available padding around the tensor. */
+ PaddingSize padding() const override;
+
/** The number of bits for the fractional part of the fixed point numbers. */
int fixed_point_position() const override;
@@ -292,6 +295,12 @@ int SimpleTensor<T>::num_elements() const
}
template <typename T>
+PaddingSize SimpleTensor<T>::padding() const
+{
+ return PaddingSize(0);
+}
+
+template <typename T>
const T *SimpleTensor<T>::data() const
{
return _buffer.get();