Shortcuts

Function c10::backend::getDeviceIndexWithPrimaryContext

Function Documentation

Warning

doxygenfunction: Unable to resolve function “c10::backend::getDeviceIndexWithPrimaryContext” with arguments “()”. Candidate function could not be parsed. Parsing error is Error when parsing function declaration. If the function has no return type: Error in declarator or parameters-and-qualifiers Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 16] C10_BACKEND_API std::optional< c10::DeviceIndex > getDeviceIndexWithPrimaryContext () —————-^ If the function has a return type: Error in declarator or parameters-and-qualifiers If pointer to member declarator: Invalid C++ declaration: Expected ‘::’ in pointer to member (function). [error at 50] C10_BACKEND_API std::optional< c10::DeviceIndex > getDeviceIndexWithPrimaryContext () ————————————————–^ If declarator-id: Invalid C++ declaration: Expecting “(” in parameters-and-qualifiers. [error at 50] C10_BACKEND_API std::optional< c10::DeviceIndex > getDeviceIndexWithPrimaryContext () ————————————————–^

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources