mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
This PR do two things: 1. It moves some Windows warning suppression from various CMake files into the main CMakeList.txt, following the conventions of gcc and clang. 2. It fixes some Windows warnings in the source code. Most importantly, it fixes lots of dll warnings by adjusting C10_API to TORCH_API or TORCH_PYTHON_API. There are still some dll warnings because some TORCH_API functions are actually built as part of libtorch_python Pull Request resolved: https://github.com/pytorch/pytorch/pull/94927 Approved by: https://github.com/malfet
16 lines
351 B
C++
16 lines
351 B
C++
#pragma once
|
|
#include <c10/util/Optional.h>
|
|
#include <torch/csrc/Export.h>
|
|
#include <torch/csrc/lazy/core/ir_metadata.h>
|
|
#include <vector>
|
|
|
|
namespace torch {
|
|
namespace lazy {
|
|
|
|
c10::optional<SourceLocation> TORCH_PYTHON_API GetPythonFrameTop();
|
|
|
|
std::vector<SourceLocation> TORCH_PYTHON_API GetPythonFrames();
|
|
|
|
} // namespace lazy
|
|
} // namespace torch
|