Caffe2 - C++ API
A deep learning, cross platform ML framework
symbolic_script.h
1 #pragma once
2 // This file is temporary until native_functions.yaml and derivatives.yaml are
3 // merged. Ideally this should all go into native_functions.yaml
4 
5 #include <c10/util/Optional.h>
6 #include <torch/csrc/jit/operator.h>
7 #include <torch/csrc/jit/script/compiler.h>
8 #include <torch/csrc/jit/script/module.h>
9 
10 namespace torch {
11 namespace jit {
12 struct GradientPair {
13  std::shared_ptr<Graph> forward;
14  std::shared_ptr<Graph> backward;
15 };
16 
17 TORCH_API c10::optional<GradientPair> gradientInfoForSchema(
18  const FunctionSchema& schema);
19 TORCH_API bool hasGradientInfoForSchema(const FunctionSchema& schema);
20 } // namespace jit
21 } // namespace torch
Definition: jit_type.h:17