mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-11 08:59:59 +00:00
11 lines
227 B
C++
11 lines
227 B
C++
|
|
#include <catch2/catch.hpp>
|
|
|
|
#include "kompute/Tensor.hpp"
|
|
|
|
TEST_CASE("Tensor should have same vector as initialised") {
|
|
std::vector<uint32_t> vec{0,1,2};
|
|
kp::Tensor tensor(vec);
|
|
REQUIRE( tensor.data() == vec );
|
|
}
|