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
009722a6
"src/vscode:/vscode.git/clone" did not exist on "abaacde526b627914b43486dab3ef45187b884be"
Unverified
Commit
009722a6
authored
Jun 21, 2021
by
Yuge Zhang
Committed by
GitHub
Jun 21, 2021
Browse files
Revert notebook example to base execution engine (#3852)
parent
ef15fc81
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
examples/notebooks/Retiarii_example_multi-trial_NAS.ipynb
examples/notebooks/Retiarii_example_multi-trial_NAS.ipynb
+3
-4
examples/notebooks/tabular_data_classification_in_AML.ipynb
examples/notebooks/tabular_data_classification_in_AML.ipynb
+1
-2
No files found.
examples/notebooks/Retiarii_example_multi-trial_NAS.ipynb
View file @
009722a6
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
"\n",
"\n",
"class Net(nn.Module):\n",
"class Net(nn.Module):\n",
" def __init__(self):\n",
" def __init__(self):\n",
" super(
Net, self
).__init__()\n",
" super().__init__()\n",
" self.conv1 = nn.Conv2d(3, 6, 3, padding=1)\n",
" self.conv1 = nn.Conv2d(3, 6, 3, padding=1)\n",
" self.pool = nn.MaxPool2d(2, 2)\n",
" self.pool = nn.MaxPool2d(2, 2)\n",
" self.conv2 = nn.Conv2d(6, 16, 3, padding=1)\n",
" self.conv2 = nn.Conv2d(6, 16, 3, padding=1)\n",
...
@@ -109,12 +109,10 @@
...
@@ -109,12 +109,10 @@
"source": [
"source": [
"import torch.nn.functional as F\n",
"import torch.nn.functional as F\n",
"import nni.retiarii.nn.pytorch as nn\n",
"import nni.retiarii.nn.pytorch as nn\n",
"from nni.retiarii import model_wrapper\n",
"\n",
"\n",
"@model_wrapper\n",
"class Net(nn.Module):\n",
"class Net(nn.Module):\n",
" def __init__(self):\n",
" def __init__(self):\n",
" super(
Net, self
).__init__()\n",
" super().__init__()\n",
" # self.conv1 = nn.Conv2d(3, 6, 3, padding=1)\n",
" # self.conv1 = nn.Conv2d(3, 6, 3, padding=1)\n",
" self.conv1 = nn.LayerChoice([nn.Conv2d(3, 6, 3, padding=1), nn.Conv2d(3, 6, 5, padding=2)])\n",
" self.conv1 = nn.LayerChoice([nn.Conv2d(3, 6, 3, padding=1), nn.Conv2d(3, 6, 5, padding=2)])\n",
" self.pool = nn.MaxPool2d(2, 2)\n",
" self.pool = nn.MaxPool2d(2, 2)\n",
...
@@ -304,6 +302,7 @@
...
@@ -304,6 +302,7 @@
"exp_config.max_trial_number = 10\n",
"exp_config.max_trial_number = 10\n",
"exp_config.trial_gpu_number = 2\n",
"exp_config.trial_gpu_number = 2\n",
"exp_config.max_experiment_duration = '5m'\n",
"exp_config.max_experiment_duration = '5m'\n",
"exp_config.execution_engine = 'base'\n",
"exp_config.training_service.use_active_gpu = True"
"exp_config.training_service.use_active_gpu = True"
]
]
},
},
...
...
examples/notebooks/tabular_data_classification_in_AML.ipynb
View file @
009722a6
...
@@ -127,9 +127,7 @@
...
@@ -127,9 +127,7 @@
"source": [
"source": [
"import nni.retiarii.nn.pytorch as nn\n",
"import nni.retiarii.nn.pytorch as nn\n",
"import torch.nn.functional as F\n",
"import torch.nn.functional as F\n",
"from nni.retiarii import model_wrapper\n",
"\n",
"\n",
"@model_wrapper\n",
"class Net(nn.Module):\n",
"class Net(nn.Module):\n",
"\n",
"\n",
" def __init__(self, input_size):\n",
" def __init__(self, input_size):\n",
...
@@ -287,6 +285,7 @@
...
@@ -287,6 +285,7 @@
"exp_config.trial_concurrency = 2\n",
"exp_config.trial_concurrency = 2\n",
"exp_config.max_trial_number = 20\n",
"exp_config.max_trial_number = 20\n",
"exp_config.max_experiment_duration = '2h'\n",
"exp_config.max_experiment_duration = '2h'\n",
"exp_config.execution_engine = 'base'\n",
"exp_config.nni_manager_ip = '' # your nni_manager_ip"
"exp_config.nni_manager_ip = '' # your nni_manager_ip"
]
]
},
},
...
...
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