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.

eye.cpp 451 B

12345678910111213141516
  1. #include "megdnn/oprs.h"
  2. #include "src/common/utils.h"
  3. namespace megdnn {
  4. void Eye::check_exec(const TensorLayout& dst, size_t workspace_in_bytes) {
  5. megdnn_assert(dst.ndim == 2 && dst.dtype.enumv() == param().dtype);
  6. megdnn_assert_contiguous(dst);
  7. auto required_workspace_in_bytes = get_workspace_in_bytes(dst);
  8. megdnn_assert(workspace_in_bytes >= required_workspace_in_bytes);
  9. }
  10. } // namespace megdnn
  11. // vim: syntax=cpp.doxygen