mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Generated by running the following from PyTorch root: ``` find . -regex ".*\.\(cpp\|h\|cu\|hpp\|cc\|cxx\)$" | grep -v "build/" | xargs -n 50 -P 4 perl -pi -e 's/c10::optional/std::optional/' ``` `c10::optional` is just an alias for `std::optional`. This removes usages of that alias in preparation for eliminating it entirely. Pull Request resolved: https://github.com/pytorch/pytorch/pull/126135 Approved by: https://github.com/Skylion007, https://github.com/malfet, https://github.com/albanD, https://github.com/aaronenyeshi
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 {
|
|
|
|
std::optional<SourceLocation> TORCH_PYTHON_API GetPythonFrameTop();
|
|
|
|
std::vector<SourceLocation> TORCH_PYTHON_API GetPythonFrames();
|
|
|
|
} // namespace lazy
|
|
} // namespace torch
|