MCPcopy Create free account
hub / github.com/apache/tvm-ffi / ExampleTuple

Function ExampleTuple

tests/cpp/test_example.cc:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void ExampleTuple() {
185 namespace ffi = tvm::ffi;
186 ffi::Tuple<int, ffi::String, bool> tup(42, "hello", true);
187
188 EXPECT_EQ(tup.get<0>(), 42);
189 EXPECT_EQ(tup.get<1>(), "hello");
190 EXPECT_EQ(tup.get<2>(), true);
191}
192
193TEST(Example, Array) {
194 ExampleArray();

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected