mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix and improvements to toward 3.13t (#136319)
Small part of https://github.com/pytorch/pytorch/pull/130689 Pull Request resolved: https://github.com/pytorch/pytorch/pull/136319 Approved by: https://github.com/malfet, https://github.com/Skylion007
This commit is contained in:
@ -739,7 +739,7 @@ public:
|
||||
|
||||
static mpy::obj<Tensor> create() {
|
||||
if (!TensorType) {
|
||||
TensorType = (PyTypeObject*) mpy::import("functorch.dim").attr("Tensor").ptr();
|
||||
TensorType = (PyTypeObject*) mpy::import("functorch.dim").attr("Tensor").release();
|
||||
}
|
||||
return Tensor::alloc(TensorType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user