mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This PR follows #116751. Pull Request resolved: https://github.com/pytorch/pytorch/pull/116486 Approved by: https://github.com/albanD
14 lines
296 B
C++
14 lines
296 B
C++
#pragma once
|
|
|
|
#include <ATen/core/Tensor.h>
|
|
|
|
namespace torch::autograd {
|
|
|
|
struct TORCH_API SavedVariableHooks {
|
|
virtual void call_pack_hook(const at::Tensor& tensor) = 0;
|
|
virtual at::Tensor call_unpack_hook() = 0;
|
|
virtual ~SavedVariableHooks() = default;
|
|
};
|
|
|
|
} // namespace torch::autograd
|