mirror of
https://github.com/pytorch/pytorch.git
synced 2026-11-20 09:04:25 +08:00
gtest-ify JIT tests, through the letter c (#45020)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/45020 See https://github.com/pytorch/pytorch/pull/45018 for context. Test Plan: Imported from OSS Reviewed By: ZolotukhinM Differential Revision: D23802296 Pulled By: suo fbshipit-source-id: 20c9798a414e9ba30869a862012cbdee0613c8b1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3f89b779c4
commit
d2b045030e
@@ -1,3 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <torch/custom_class.h>
|
||||
#include <torch/script.h>
|
||||
|
||||
@@ -318,7 +320,7 @@ TORCH_LIBRARY(_TorchScriptTesting, m) {
|
||||
|
||||
} // namespace
|
||||
|
||||
void testTorchbindIValueAPI() {
|
||||
TEST(CustomClassTest, TorchbindIValueAPI) {
|
||||
script::Module m("m");
|
||||
|
||||
// test make_custom_class API
|
||||
|
||||
Reference in New Issue
Block a user