Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18912
We intentionally test a deprecated API, no need to show the warnings here.
Reviewed By: dzhulgakov
Differential Revision:
D14792617
fbshipit-source-id:
9ea2a4106d566064283726eed2c274b98f49a2e5
* > .op("func(Tensor a) -> Tensor", &kernel);
*/
+// This intentionally tests a deprecated API
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
using c10::RegisterOperators;
using c10::FunctionSchema;
using c10::Argument;
}
}
+
+#pragma GCC diagnostic pop
* > .op("myfunc(Tensor a) -> Tensor", [] (Tensor a) -> Tensor {...});
*/
+// This intentionally tests a deprecated API
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
using c10::RegisterOperators;
using c10::FunctionSchema;
using c10::Argument;
}
}
+
+#pragma GCC diagnostic pop