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.

fixture.cpp 444 B

12345678910111213141516171819202122
  1. #include "test/fallback/fixture.h"
  2. #include "test/common/memory_manager.h"
  3. #include "test/common/random_state.h"
  4. #include "test/common/utils.h"
  5. namespace megdnn {
  6. namespace test {
  7. void FALLBACK::SetUp() {
  8. RandomState::reset();
  9. m_handle = create_cpu_handle(1);
  10. }
  11. void FALLBACK::TearDown() {
  12. m_handle.reset();
  13. MemoryManagerHolder::instance()->clear();
  14. }
  15. } // namespace test
  16. } // namespace megdnn
  17. // vim: syntax=cpp.doxygen