You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

softmax.h 664 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <cstddef>
  3. #include "megdnn/basic_types.h"
  4. #include "megdnn/opr_param_defs.h"
  5. namespace megdnn {
  6. namespace test {
  7. namespace softmax {
  8. struct TestArg {
  9. param::Softmax param;
  10. TensorShape ishape;
  11. TestArg(param::Softmax param, TensorShape ishape) : param(param), ishape(ishape) {}
  12. };
  13. inline std::vector<TestArg> get_args() {
  14. std::vector<TestArg> args;
  15. using Param = param::Softmax;
  16. for (int32_t axis = 0; axis < 5; axis++) {
  17. args.emplace_back(Param{axis}, TensorShape{2, 23, 32, 30, 17});
  18. }
  19. return args;
  20. }
  21. } // namespace softmax
  22. } // namespace test
  23. } // namespace megdnn
  24. // vim: syntax=cpp.doxygen