commandΒΆ

Command tools (qurry.tools.command)

qurry.tools.command.cmd_wrapper(cmd: str = '') None[source]ΒΆ

Use command in anywhere, no matter it’s in .ipynb or β€˜.py’.

Parameters:

cmd (str, optional) – Which execute command in any python or jupyter environment. Defaults to β€œβ€.

qurry.tools.command.fun_platform_check()[source]ΒΆ

Check platform information.

qurry.tools.command.pytorch_cuda_check() bool | None[source]ΒΆ

Via pytorch to check the availability of Nvidia CUDA.

Returns:

Available of CUDA by pytorch if pytorch is available, else β€˜None’.

Return type:

bool