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
fuser
tensor_info.h
1
#pragma once
2
#include <torch/csrc/WindowsTorchApiMacro.h>
3
4
#include <cstdint>
5
6
namespace
torch
{
7
namespace
jit {
8
namespace
fuser {
9
10
// Host-side view of TensorInfo
11
// Note dims[0] - we need to dynamically allocate the dims.
12
struct
TORCH_API
TensorInfo
{
13
uint32_t* sizes(
size_t
nDim) {
14
return
&sizes_strides[0];
15
}
16
uint32_t* strides(
size_t
nDim) {
17
return
&sizes_strides[nDim];
18
}
19
20
void
* data;
21
#pragma GCC diagnostic ignored "-Wpedantic"
22
uint32_t sizes_strides[0];
23
#pragma GCC diagnostic pop
24
};
25
26
}
// namespace fuser
27
}
// namespace jit
28
}
// namespace torch
torch
Definition:
jit_type.h:17
torch::jit::fuser::TensorInfo
Definition:
tensor_info.h:12
Generated on Thu Mar 21 2019 13:06:23 for Caffe2 - C++ API by
1.8.11