/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/autograd
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/autograd/record_function_ops.h (587B)
#pragma once
#include
namespace torch {
namespace autograd {
namespace profiler {
// Creates a new profiling scope using RecordFunction and invokes its starting
// callbacks.
TORCH_API at::Tensor record_function_enter(const std::string& name);
// Schedules RecordFunction's end callbacks to be run on completion of a future.
TORCH_API c10::intrusive_ptr _call_end_callbacks_on_fut(
const at::Tensor& handle,
const c10::intrusive_ptr& fut);
} // namespace profiler
} // namespace autograd
} // namespace torch