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
autograd
anomaly_mode.h
1
#pragma once
2
3
#include <torch/csrc/WindowsTorchApiMacro.h>
4
5
namespace
torch
{
namespace
autograd {
6
7
struct
AnomalyMode
{
8
static
bool
is_enabled() {
9
return
_enabled;
10
}
11
static
void
set_enabled(
bool
enabled) {
12
_enabled = enabled;
13
}
14
15
private
:
16
TORCH_API
static
bool
_enabled;
17
};
18
19
20
struct
AnomalyMetadata
{
21
virtual
~
AnomalyMetadata
() =
default
;
22
virtual
void
store_stack() = 0;
23
virtual
void
print_stack() = 0;
24
};
25
26
}}
torch
Definition:
jit_type.h:17
torch::autograd::AnomalyMode
Definition:
anomaly_mode.h:7
torch::autograd::AnomalyMetadata
Definition:
anomaly_mode.h:20
Generated on Thu Mar 21 2019 13:06:22 for Caffe2 - C++ API by
1.8.11