Messed up my CMakeLists.txt . That took care of the reference. Everything compiles fine, but now seems to hang when initializing that dataset:
auto dataset = rock::data::datasets::RandomDataset()
    .map(torch::data::transforms::Stack<>());