pytoda.warnings module

Summary

Functions:

device_warning

type device

Any

Reference

device_warning(device, throw_exception=True)[source]
Parameters
  • device (Any) – A device object provided by the user.

  • throw_exception (bool) – Whether an exception is thrown. Defaults to True.

Raises

ValueError – Raises if throw_exception is True.