We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b8cc5 commit 82a6b00Copy full SHA for 82a6b00
1 file changed
test/graph/test_graph.cpp
@@ -70,6 +70,28 @@ TEST(graph, test_new_setOutput) {
70
ASSERT_NO_THROW(graph.setOutput(output));
71
}
72
73
+TEST(graph, test_new_setInput_throw) {
74
+ const std::vector<float> vec1 = {2.0F, 1.5F, 0.1F, 1.9F, 0.0F, 5.5F};
75
+ Tensor weights = make_tensor<float>(vec1, {3, 2});
76
+ Tensor bias = make_tensor<float>({0.5F, 0.5F, 1.0F});
77
+ Tensor input = make_tensor<float>({1.0F, 2.0F}, {2});
78
+ Tensor output;
79
+ Graph graph;
80
+
81
+ ASSERT_ANY_THROW(graph.setInput(input));
82
+}
83
84
+TEST(graph, test_new_setOutput_throw) {
85
86
87
88
89
90
91
92
+ ASSERT_ANY_THROW(graph.setOutput(output));
93
94
95
TEST(graph, test_deep_copy) {
96
Graph graph;
97
Graph graph2;
0 commit comments