Skip to content

Commit a9ed4ed

Browse files
committed
Set torch seeds for reproducible training
1 parent 7364f0e commit a9ed4ed

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

RecoTracker/LSTCore/standalone/analysis/DNN/train_T3_DNN.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# set seed for reproducibility\n",
10+
"import torch\n",
11+
"torch.manual_seed(42)"
12+
]
13+
},
314
{
415
"cell_type": "code",
516
"execution_count": 1,

RecoTracker/LSTCore/standalone/analysis/DNN/train_T5_DNN.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# set seed for reproducibility\n",
10+
"import torch\n",
11+
"torch.manual_seed(42)"
12+
]
13+
},
314
{
415
"cell_type": "code",
516
"execution_count": 1,

RecoTracker/LSTCore/standalone/analysis/DNN/train_pT3_DNN.ipynb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# set seed for reproducibility\n",
10+
"import torch\n",
11+
"torch.manual_seed(42)"
12+
]
13+
},
314
{
415
"cell_type": "code",
516
"execution_count": 1,

0 commit comments

Comments
 (0)