![]() |
OpenPose
1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
|
#include <arrayCpuGpu.hpp>
Public Member Functions | |
| ArrayCpuGpu () | |
| ArrayCpuGpu (const void *caffeBlobTPtr) | |
| ArrayCpuGpu (const Array< T > &array, const bool copyFromGpu) | |
| ArrayCpuGpu (const int num, const int channels, const int height, const int width) | |
| void | Reshape (const int num, const int channels, const int height, const int width) |
| void | Reshape (const std::vector< int > &shape) |
| std::string | shape_string () const |
| const std::vector< int > & | shape () const |
| int | shape (const int index) const |
| int | num_axes () const |
| int | count () const |
| int | count (const int start_axis, const int end_axis) const |
| int | count (const int start_axis) const |
| int | CanonicalAxisIndex (const int axis_index) const |
| int | num () const |
| int | channels () const |
| int | height () const |
| int | width () const |
| int | LegacyShape (const int index) const |
| int | offset (const int n, const int c=0, const int h=0, const int w=0) const |
| T | data_at (const int n, const int c, const int h, const int w) const |
| T | diff_at (const int n, const int c, const int h, const int w) const |
| const T * | cpu_data () const |
| void | set_cpu_data (T *data) |
| const int * | gpu_shape () const |
| const T * | gpu_data () const |
| void | set_gpu_data (T *data) |
| const T * | cpu_diff () const |
| const T * | gpu_diff () const |
| T * | mutable_cpu_data () |
| T * | mutable_gpu_data () |
| T * | mutable_cpu_diff () |
| T * | mutable_gpu_diff () |
| void | Update () |
| T | asum_data () const |
| T | asum_diff () const |
| T | sumsq_data () const |
| T | sumsq_diff () const |
| void | scale_data (const T scale_factor) |
| void | scale_diff (const T scale_factor) |
ArrayCpuGpu<T>: Bind of caffe::Blob<T> to avoid Caffe as dependency in the headers.
Definition at line 15 of file arrayCpuGpu.hpp.
| op::ArrayCpuGpu< T >::ArrayCpuGpu | ( | ) |
|
explicit |
| caffeBlobTPtr | should be a caffe::Blob<T>* element or it will provoke a core dumped. Done to avoid explicitly exposing 3rdparty libraries on the headers. |
|
explicit |
Create an ArrayCpuGpu from the data in the Array element (it will automatically copy that data).
| array | Array<T> where the data to be copied is. |
| copyFromGpu | If false (default), it will copy the data to the CPU. If true, it will copy it to the GPU memory (using CUDA copy function). |
|
explicit |
| T op::ArrayCpuGpu< T >::asum_data | ( | ) | const |
| T op::ArrayCpuGpu< T >::asum_diff | ( | ) | const |
| int op::ArrayCpuGpu< T >::CanonicalAxisIndex | ( | const int | axis_index | ) | const |
| int op::ArrayCpuGpu< T >::channels | ( | ) | const |
| int op::ArrayCpuGpu< T >::count | ( | ) | const |
| int op::ArrayCpuGpu< T >::count | ( | const int | start_axis | ) | const |
| int op::ArrayCpuGpu< T >::count | ( | const int | start_axis, |
| const int | end_axis | ||
| ) | const |
| const T* op::ArrayCpuGpu< T >::cpu_data | ( | ) | const |
| const T* op::ArrayCpuGpu< T >::cpu_diff | ( | ) | const |
| T op::ArrayCpuGpu< T >::data_at | ( | const int | n, |
| const int | c, | ||
| const int | h, | ||
| const int | w | ||
| ) | const |
| T op::ArrayCpuGpu< T >::diff_at | ( | const int | n, |
| const int | c, | ||
| const int | h, | ||
| const int | w | ||
| ) | const |
| const T* op::ArrayCpuGpu< T >::gpu_data | ( | ) | const |
| const T* op::ArrayCpuGpu< T >::gpu_diff | ( | ) | const |
| const int* op::ArrayCpuGpu< T >::gpu_shape | ( | ) | const |
| int op::ArrayCpuGpu< T >::height | ( | ) | const |
| int op::ArrayCpuGpu< T >::LegacyShape | ( | const int | index | ) | const |
| T* op::ArrayCpuGpu< T >::mutable_cpu_data | ( | ) |
| T* op::ArrayCpuGpu< T >::mutable_cpu_diff | ( | ) |
| T* op::ArrayCpuGpu< T >::mutable_gpu_data | ( | ) |
| T* op::ArrayCpuGpu< T >::mutable_gpu_diff | ( | ) |
| int op::ArrayCpuGpu< T >::num | ( | ) | const |
| int op::ArrayCpuGpu< T >::num_axes | ( | ) | const |
| int op::ArrayCpuGpu< T >::offset | ( | const int | n, |
| const int | c = 0, |
||
| const int | h = 0, |
||
| const int | w = 0 |
||
| ) | const |
| void op::ArrayCpuGpu< T >::Reshape | ( | const int | num, |
| const int | channels, | ||
| const int | height, | ||
| const int | width | ||
| ) |
| void op::ArrayCpuGpu< T >::Reshape | ( | const std::vector< int > & | shape | ) |
| void op::ArrayCpuGpu< T >::scale_data | ( | const T | scale_factor | ) |
| void op::ArrayCpuGpu< T >::scale_diff | ( | const T | scale_factor | ) |
| void op::ArrayCpuGpu< T >::set_cpu_data | ( | T * | data | ) |
| void op::ArrayCpuGpu< T >::set_gpu_data | ( | T * | data | ) |
| const std::vector<int>& op::ArrayCpuGpu< T >::shape | ( | ) | const |
| int op::ArrayCpuGpu< T >::shape | ( | const int | index | ) | const |
| std::string op::ArrayCpuGpu< T >::shape_string | ( | ) | const |
| T op::ArrayCpuGpu< T >::sumsq_data | ( | ) | const |
| T op::ArrayCpuGpu< T >::sumsq_diff | ( | ) | const |
| void op::ArrayCpuGpu< T >::Update | ( | ) |
| int op::ArrayCpuGpu< T >::width | ( | ) | const |