| 51 | namespace bytedance::bolt::torch::testing { |
| 52 | |
| 53 | std::string_view AsStringView(const ::bytedance::bolt::VectorPtr vec) { |
| 54 | auto typeKind = vec->type()->kind(); |
| 55 | auto* loaded_vec = vec->loadedVector(); |
| 56 | char* data = BOLT_DYNAMIC_SCALAR_TYPE_DISPATCH_ALL( |
| 57 | getFlatBufferRawValues, typeKind, loaded_vec); |
| 58 | return {data, loaded_vec->usedSize()}; |
| 59 | } |
| 60 | |
| 61 | BoltTensor TorchTest::MakeTensor(::at::IntArrayRef sizes, TorchType type) { |
| 62 | size_t total_size = |
nothing calls this directly
no test coverage detected