Caffe2 - C++ API
A deep learning, cross platform ML framework
hooks_for_testing.h
1 #pragma once
2 #include <torch/csrc/WindowsTorchApiMacro.h>
3 #include <functional>
4 #include <memory>
5 
6 namespace torch {
7 namespace jit {
8 namespace script {
9 struct Module;
10 }
11 TORCH_API void didFinishEmitModule(std::shared_ptr<script::Module> module);
12 TORCH_API void setEmitModuleHook(
13  std::function<void(std::shared_ptr<script::Module> module)> cb);
14 } // namespace jit
15 } // namespace torch
Definition: jit_type.h:17