MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / TEST_F

Function TEST_F

tests/test_tensor_stream.cpp:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21TEST_F(TensorStreamTest, DefaultStreamIsNullptr) {
22 auto t = Tensor::empty({4, 4}, Device::CUDA);
23 EXPECT_EQ(t.stream(), nullptr);
24}
25
26TEST_F(TensorStreamTest, FactoryPicksUpThreadLocalStream) {
27 cudaStream_t stream;

Callers

nothing calls this directly

Calls 15

fullFunction · 0.85
empty_likeFunction · 0.85
full_likeFunction · 0.85
getCurrentCUDAStreamFunction · 0.85
from_vectorFunction · 0.85
unsqueezeMethod · 0.80
squeezeMethod · 0.80
transposeMethod · 0.80
to_vectorMethod · 0.80
backMethod · 0.80
mulMethod · 0.80
is_contiguousMethod · 0.80

Tested by

no test coverage detected