def prefer_gpu():
from ._classes.model import Model<EOL>from .ops import CupyOps<EOL>if CupyOps.xp is not None:<EOL><INDENT>Model.Ops = CupyOps<EOL>Model.ops = CupyOps()<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Use GPU if it's available. Returns True if so, False otherwise.