mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Let's have some fun. Pull Request resolved: https://github.com/pytorch/pytorch/pull/78828 Approved by: https://github.com/ezyang
9 lines
210 B
C
9 lines
210 B
C
#pragma once
|
|
|
|
#include <Python.h>
|
|
|
|
inline PyCFunction castPyCFunctionWithKeywords(PyCFunctionWithKeywords func) {
|
|
// NOLINTNEXTLINE(modernize-redundant-void-arg)
|
|
return (PyCFunction)(void (*)(void))func;
|
|
}
|