SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
smaug
operators
smv
smv_test_common.h
1
#include "smaug/core/tensor.h"
2
3
namespace
smaug
{
4
5
// For the operator tests, tensors should be initialized with random data so
6
// that more corner cases can be tested. For tiling tests, fixed data is used
7
// for easy verification.
8
10
void
fillTensorWithRandomData
(Tensor* tensor);
11
19
void
fillTensorWithFixedData
(Tensor* tensor);
20
25
void
verifyTensorWithFixedData
(Tensor* tensor,
int
valueOffset);
26
27
}
// namespace smaug
smaug::verifyTensorWithFixedData
void verifyTensorWithFixedData(Tensor *tensor, int valueOffset)
Verify that the provided Tensor's data matches the fixed pattern produced by fillTensorWithFixedData,...
Definition:
smv_test_common.cpp:35
smaug
The smaug namespace is the parent namespace of all C++ code in SMAUG.
Definition:
backend.cpp:38
smaug::fillTensorWithRandomData
void fillTensorWithRandomData(Tensor *tensor)
This fills the Tensor with normally distributed random values.
Definition:
smv_test_common.cpp:16
smaug::fillTensorWithFixedData
void fillTensorWithFixedData(Tensor *tensor)
This fills the Tensor with a fixed data pattern.
Definition:
smv_test_common.cpp:22
Generated by
1.8.18