Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
torch
csrc
jit
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
torch::jit::GradientPair
Definition:
symbolic_script.h:12
c10::optional
Definition:
Optional.h:118
torch
Definition:
jit_type.h:17
c10::FunctionSchema
Definition:
function_schema.h:67
Generated on Thu Mar 21 2019 13:06:24 for Caffe2 - C++ API by
1.8.11