MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / TEST

Function TEST

tests/ops_test.cc:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "ctranslate2/ops/ops.h"
5
6TEST(OpTest, Transpose1D) {
7 StorageView x({4}, std::vector<float>{1, 2, 3, 4});
8 StorageView y;
9 ops::Transpose()(x, y);
10 expect_storage_eq(y, x);
11}
12
13TEST(OpTest, Squeeze) {
14 StorageView x({2, 1, 3}, DataType::FLOAT32);

Callers

nothing calls this directly

Calls 13

TransposeClass · 0.85
expect_storage_eqFunction · 0.85
SqueezeClass · 0.85
assert_vector_eqFunction · 0.85
UnsqueezeClass · 0.85
SplitClass · 0.85
GatherClass · 0.85
mayiuse_int16Function · 0.85
QuantizeClass · 0.85
DequantizeClass · 0.85
bufferMethod · 0.80
shapeMethod · 0.45

Tested by

no test coverage detected