| 29 | #ifdef DNNC_SOFTMAX_TEST |
| 30 | #include <iostream> |
| 31 | int main() { |
| 32 | float d1[6] = {1., 2., 3., 4., 5., 6.}; |
| 33 | |
| 34 | tensor<float> a({2, 3}); |
| 35 | a.load(d1); |
| 36 | |
| 37 | Softmax<float> m("localOpName"); |
| 38 | int axis = 0; |
| 39 | m.setAttribute(attr_axis, axis); |
| 40 | auto result = m.compute(a); |
| 41 | |
| 42 | std::cout << result; |
| 43 | std::cout << "\n"; |
| 44 | } |
| 45 | #endif |
nothing calls this directly
no test coverage detected