mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-05 08:24:57 +08:00
Summary: Bump oneDNN (mkl-dnn) to 1.7 for bug fixes and performance optimizations - Fixes https://github.com/pytorch/pytorch/issues/42115. Fixed build issue on Windows for the case when oneDNN is built as submodule - Fixes https://github.com/pytorch/pytorch/issues/45746. Fixed segmentation fault for convolution weight gradient on systems with Intel AVX512 support This PR also contains a few changes in ideep for follow-up update (not enabled in current PR yet): - Performance improvements for the CPU path of Convolution - Channel-last support Pull Request resolved: https://github.com/pytorch/pytorch/pull/47853 Reviewed By: bdhirsh Differential Revision: D25275268 Pulled By: VitalyFedyunin fbshipit-source-id: 75a589d57e3d19a7f23272a67045ad7494f1bdbe
20 lines
504 B
C
20 lines
504 B
C
#pragma once
|
|
#include <math.h>
|
|
// workaround for Python 2 issue: https://bugs.python.org/issue17120
|
|
// NOTE: It looks like this affects Python 3 as well.
|
|
#pragma push_macro("_XOPEN_SOURCE")
|
|
#pragma push_macro("_POSIX_C_SOURCE")
|
|
#undef _XOPEN_SOURCE
|
|
#undef _POSIX_C_SOURCE
|
|
|
|
#include <Python.h>
|
|
#include <structseq.h>
|
|
|
|
#pragma pop_macro("_XOPEN_SOURCE")
|
|
#pragma pop_macro("_POSIX_C_SOURCE")
|
|
|
|
#if PY_MAJOR_VERSION < 3
|
|
#error "Python 2 has reached end-of-life and is no longer supported by PyTorch."
|
|
#endif
|
|
|