|
|
|
@ -26,7 +26,7 @@ export function usePytorch(model: { [field: string]: any }): IJsonItem[] {
|
|
|
|
|
const isCreateEnvironmentSpan = ref(0) |
|
|
|
|
const pythonPathSpan = ref(0) |
|
|
|
|
const pythonEnvToolSpan = ref(0) |
|
|
|
|
const pythonCommandSpan = ref(0) |
|
|
|
|
const pythonLauncherSpan = ref(0) |
|
|
|
|
const requirementsSpan = ref(0) |
|
|
|
|
const condaPythonVersionSpan = ref(0) |
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ export function usePytorch(model: { [field: string]: any }): IJsonItem[] {
|
|
|
|
|
isCreateEnvironmentSpan.value = model.otherParams ? 12 : 0 |
|
|
|
|
pythonPathSpan.value = model.otherParams ? 24 : 0 |
|
|
|
|
pythonEnvToolSpan.value = model.showCreateEnvironment ? 12 : 0 |
|
|
|
|
pythonCommandSpan.value = |
|
|
|
|
pythonLauncherSpan.value = |
|
|
|
|
~model.showCreateEnvironment & model.otherParams ? 12 : 0 |
|
|
|
|
requirementsSpan.value = model.showCreateEnvironment ? 24 : 0 |
|
|
|
|
condaPythonVersionSpan.value = model.showCreateConda ? 24 : 0 |
|
|
|
@ -93,11 +93,11 @@ export function usePytorch(model: { [field: string]: any }): IJsonItem[] {
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: 'input', |
|
|
|
|
field: 'pythonCommand', |
|
|
|
|
name: t('project.node.pytorch_python_command'), |
|
|
|
|
span: pythonCommandSpan, |
|
|
|
|
field: 'pythonLauncher', |
|
|
|
|
name: t('project.node.pytorch_python_launcher'), |
|
|
|
|
span: pythonLauncherSpan, |
|
|
|
|
props: { |
|
|
|
|
placeholder: t('project.node.pytorch_python_command_tips') |
|
|
|
|
placeholder: t('project.node.pytorch_python_launcher_tips') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|