Migrated default base type of tensor to float
This commit is contained in:
parent
00c66f347b
commit
08a1300450
13 changed files with 255 additions and 249 deletions
|
|
@ -4,15 +4,15 @@
|
|||
#include "kompute/Kompute.hpp"
|
||||
|
||||
TEST_CASE("test_tensor_constructor_data") {
|
||||
std::vector<uint32_t> vec{0,1,2};
|
||||
std::vector<float> vec{0,1,2};
|
||||
kp::Tensor tensor(vec);
|
||||
REQUIRE( tensor.size() == vec.size() );
|
||||
REQUIRE( tensor.data() == vec );
|
||||
}
|
||||
|
||||
TEST_CASE("test_tensor_copy_from_other_tensor_host_data") {
|
||||
std::vector<uint32_t> vecA{0,1,2};
|
||||
std::vector<uint32_t> vecB{0,0,0};
|
||||
std::vector<float> vecA{0,1,2};
|
||||
std::vector<float> vecB{0,0,0};
|
||||
|
||||
std::shared_ptr<kp::Tensor> tensorA = std::make_shared<kp::Tensor>(
|
||||
vecA,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue