MCPcopy Create free account
hub / github.com/cactus-compute/cactus / test_reshape

Function test_reshape

tests/test_graph.cpp:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool test_reshape() {
219 TestUtils::FP16TestFixture fixture("Reshape");
220
221 size_t input_a = fixture.create_input({2, 3});
222 size_t reshape_result = fixture.graph().reshape(input_a, {3, 2});
223
224 std::vector<__fp16> data_a = {1, 2, 3, 4, 5, 6};
225 fixture.set_input_data(input_a, data_a);
226 fixture.execute();
227
228 return fixture.verify_output(reshape_result, data_a);
229}
230
231
232bool test_scalar_operations() {

Callers 1

mainFunction · 0.85

Calls 5

create_inputMethod · 0.80
reshapeMethod · 0.80
set_input_dataMethod · 0.80
verify_outputMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected