mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Reland of PR #107648 with auto replaced with Py_ssize_t in eval_frame.c. This PR applies fixes to some found issues by clang-tidy in torch/csrc. Pull Request resolved: https://github.com/pytorch/pytorch/pull/108114 Approved by: https://github.com/Skylion007
15 lines
428 B
C++
15 lines
428 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(int64_t dim, const int64_t* sizes);
|
|
PyObject* THPSize_NewFromSymSizes(const at::Tensor& t);
|
|
|
|
void THPSize_init(PyObject* module);
|