I wrote a function which takes in NNData. I'm trying to unit test my function. I expected the following to work, however it doesn't. What's the recommended work-around to create my own NNData object?
dai::NNData test_data;
test_data.setLayer("my_layer", std::vector<float>{1, 2, 3});
auto data = test_data.getLayerFp16("my_layer");
std::cout << data.size() << std::endl;
// Expected 3, printed 0.