MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / main

Function main

src/operators/Softmax.cpp:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#ifdef DNNC_SOFTMAX_TEST
30#include <iostream>
31int 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

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
setAttributeMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected