Table of Contents
Constants
-
ADDITIONAL_PACKAGES
= ['0.16' => 'numpy~=1.18.0', '0.17' => 'numpy~=1.18.0', '0.18' => 'numpy~=1.18.0', '0.19' => 'numpy~=1.18.0', '0.20' => 'numpy~=1.18.0', '0.21' => 'numpy~=1.18.0', '0.22' => 'numpy~=1.18.0 torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2', '0.23' => 'torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2']
-
ADDITIONAL_REPOSITORIES
= '-f https://download.pytorch.org/whl/torch_stable.html'
-
LOCK_EXTENSION
= '.lock'
-
PACKAGE_MAPPING
= ['1.7.0-preview' => '0.23', '1.6.0-preview' => '0.22', '1.5.0-preview' => '0.21', '1.4.0-preview' => '0.20', '1.3.0-preview' => '0.19', '1.2.0-preview' => '0.18', '1.1.0-preview' => '0.17', '1.0.3' => '0.16', '1.0.2' => '0.16']
-
ROOT_PATH
= 'python'
-
UPGRADE_PIP
= 'python.exe -m pip install --upgrade pip'
Properties
-
$version
: mixed
Methods
-
__construct()
: mixed
-
determineContexts()
: iterable<string|int, mixed>
-
freeze()
: mixed
-
install()
: mixed
-
learn()
: int
-
loadLock()
: mixed
-
loadPath()
: mixed
-
lockExists()
: bool
-
pathExists()
: bool
-
setup()
: mixed
-
update()
: mixed
ADDITIONAL_PACKAGES
public
mixed
ADDITIONAL_PACKAGES
= ['0.16' => 'numpy~=1.18.0', '0.17' => 'numpy~=1.18.0', '0.18' => 'numpy~=1.18.0', '0.19' => 'numpy~=1.18.0', '0.20' => 'numpy~=1.18.0', '0.21' => 'numpy~=1.18.0', '0.22' => 'numpy~=1.18.0 torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2', '0.23' => 'torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2']
ADDITIONAL_REPOSITORIES
public
mixed
ADDITIONAL_REPOSITORIES
= '-f https://download.pytorch.org/whl/torch_stable.html'
LOCK_EXTENSION
public
mixed
LOCK_EXTENSION
= '.lock'
PACKAGE_MAPPING
public
mixed
PACKAGE_MAPPING
= ['1.7.0-preview' => '0.23', '1.6.0-preview' => '0.22', '1.5.0-preview' => '0.21', '1.4.0-preview' => '0.20', '1.3.0-preview' => '0.19', '1.2.0-preview' => '0.18', '1.1.0-preview' => '0.17', '1.0.3' => '0.16', '1.0.2' => '0.16']
ROOT_PATH
public
mixed
ROOT_PATH
= 'python'
UPGRADE_PIP
public
mixed
UPGRADE_PIP
= 'python.exe -m pip install --upgrade pip'
$version
public
mixed
$version
__construct()
public
__construct(string $workDirectory, string $version) : mixed
Parameters
-
$workDirectory
: string
-
-
$version
: string
-
determineContexts()
public
static determineContexts(string $serverPath) : iterable<string|int, mixed>
Parameters
-
$serverPath
: string
-
Return values
iterable<string|int, mixed>
freeze()
public
freeze() : mixed
install()
public
install() : mixed
learn()
public
learn(string $workDirectory, string $arguments) : int
Parameters
-
$workDirectory
: string
-
-
$arguments
: string
-
loadLock()
public
loadLock() : mixed
loadPath()
public
loadPath() : mixed
lockExists()
public
lockExists() : bool
pathExists()
public
pathExists() : bool
setup()
public
setup() : mixed
update()
public
update() : mixed