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.

tensor_utils.h 1.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. namespace mgb::imperative::python {
  3. PyObject* dtype_promotion(PyObject* self, PyObject* const* args, size_t nargs);
  4. PyObject* get_device(PyObject* self, PyObject* const* args, size_t nargs);
  5. PyObject* make_shape_tuple(PyObject* self, PyObject* const* args, size_t nargs);
  6. PyObject* getitem_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  7. PyObject* setitem_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  8. PyObject* split_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  9. PyObject* expand_dims_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  10. PyObject* squeeze_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  11. PyObject* transpose_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  12. PyObject* broadcast_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  13. PyObject* reshape_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  14. PyObject* adaptive_pool2d_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  15. PyObject* Const(PyObject* self, PyObject* const* args, size_t nargs);
  16. PyObject* astype_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  17. PyObject* matmul_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  18. PyObject* batched_matmul_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  19. PyObject* convert_single_value_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  20. PyObject* convert_inputs_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  21. PyObject* astensor1d_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  22. PyObject* pixel_shuffle_cpp(PyObject* self, PyObject* const* args, size_t nargs);
  23. } // namespace mgb::imperative::python