mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Change symbols in torch_python to invisible by default on platforms other than Apple. Pull Request resolved: https://github.com/pytorch/pytorch/pull/142214 Approved by: https://github.com/ezyang
17 lines
476 B
C++
17 lines
476 B
C++
#pragma once
|
|
|
|
#include <torch/csrc/Export.h>
|
|
#include <torch/csrc/autograd/variable.h>
|
|
#include <torch/csrc/python_headers.h>
|
|
#include <cstdint>
|
|
|
|
TORCH_PYTHON_API extern PyTypeObject THPSizeType;
|
|
|
|
#define THPSize_Check(obj) (Py_TYPE(obj) == &THPSizeType)
|
|
|
|
PyObject* THPSize_New(const torch::autograd::Variable& t);
|
|
PyObject* THPSize_NewFromSizes(int64_t dim, const int64_t* sizes);
|
|
PyObject* THPSize_NewFromSymSizes(const at::Tensor& t);
|
|
|
|
void THPSize_init(PyObject* module);
|