mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
rebased https://github.com/pytorch/pytorch/pull/79617/ to see if issues are reproducible. Pull Request resolved: https://github.com/pytorch/pytorch/pull/79795 Approved by: https://github.com/malfet
16 lines
424 B
C++
16 lines
424 B
C++
#pragma once
|
|
|
|
#include <torch/csrc/autograd/variable.h>
|
|
#include <torch/csrc/python_headers.h>
|
|
#include <cstdint>
|
|
|
|
extern PyTypeObject THPSizeType;
|
|
|
|
#define THPSize_Check(obj) (Py_TYPE(obj) == &THPSizeType)
|
|
|
|
PyObject* THPSize_New(const torch::autograd::Variable& t);
|
|
PyObject* THPSize_NewFromSizes(int dim, const int64_t* sizes);
|
|
PyObject* THPSize_NewFromSymSizes(const at::Tensor& t);
|
|
|
|
void THPSize_init(PyObject* module);
|