Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
761732ab
Unverified
Commit
761732ab
authored
May 17, 2021
by
Ni Hao
Committed by
GitHub
May 17, 2021
Browse files
fix syntax error on windows (#3634)
Co-authored-by:
Hao Ni
<
v-nihao@microsoft.com
>
parent
e5fb9c51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ts/nni_manager/core/nniTensorboardManager.ts
ts/nni_manager/core/nniTensorboardManager.ts
+1
-1
No files found.
ts/nni_manager/core/nniTensorboardManager.ts
View file @
761732ab
...
@@ -116,7 +116,7 @@ class NNITensorboardManager implements TensorboardManager {
...
@@ -116,7 +116,7 @@ class NNITensorboardManager implements TensorboardManager {
private
setTensorboardVersion
():
void
{
private
setTensorboardVersion
():
void
{
let
command
=
`python3 -c 'import tensorboard ; print(tensorboard.__version__)'`
;
let
command
=
`python3 -c 'import tensorboard ; print(tensorboard.__version__)'`
;
if
(
process
.
platform
===
'
win32
'
)
{
if
(
process
.
platform
===
'
win32
'
)
{
command
=
`python -c
'
import tensorboard ; print(tensorboard.__version__)
'
`
;
command
=
`python -c
"
import tensorboard ; print(tensorboard.__version__)
"
`
;
}
}
try
{
try
{
const
tensorboardVersion
=
cp
.
execSync
(
command
).
toString
();
const
tensorboardVersion
=
cp
.
execSync
(
command
).
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment