14 lines
251 B
C++
14 lines
251 B
C++
![]() |
#include <torch/extension.h>
|
||
|
|
||
|
int get_device_attribute(
|
||
|
int attribute,
|
||
|
int device_id);
|
||
|
|
||
|
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
||
|
m.def(
|
||
|
"get_device_attribute",
|
||
|
&get_device_attribute,
|
||
|
"Gets the specified device attribute.");
|
||
|
}
|
||
|
|