Caffe2 - C++ API
A deep learning, cross platform ML framework
python_variable_indexing.h
1 #pragma once
2 
3 #include <torch/csrc/python_headers.h>
4 
5 namespace torch { namespace autograd {
6 
7 Py_ssize_t THPVariable_length(PyObject* self);
8 PyObject* THPVariable_getitem(PyObject* self, PyObject* index);
9 int THPVariable_setitem(PyObject* self, PyObject* index, PyObject* value);
10 
11 }} // namespace torch::autograd
Definition: jit_type.h:17