From 338e00dd2ed1621a6d4e03cacc87c52badd19b7a Mon Sep 17 00:00:00 2001 From: Yulong Ao Date: Mon, 18 Apr 2022 15:49:35 +0800 Subject: [PATCH] [Auto Parallel] Add links for the reference codes. (#41829) * [Auto Parallel] Add links for the reference codes. * Update recorder.py * Update trial.py * Update test=document_fix * Update test=document_fix --- python/paddle/distributed/auto_parallel/tuner/recorder.py | 3 +++ python/paddle/distributed/auto_parallel/tuner/storable.py | 3 +++ python/paddle/distributed/auto_parallel/tuner/trial.py | 3 +++ python/paddle/distributed/auto_parallel/tuner/tunable_space.py | 3 +++ .../paddle/distributed/auto_parallel/tuner/tunable_variable.py | 3 +++ 5 files changed, 15 insertions(+) diff --git a/python/paddle/distributed/auto_parallel/tuner/recorder.py b/python/paddle/distributed/auto_parallel/tuner/recorder.py index 140336566a1..d0f181a6354 100644 --- a/python/paddle/distributed/auto_parallel/tuner/recorder.py +++ b/python/paddle/distributed/auto_parallel/tuner/recorder.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Notice that the following codes are modified from KerasTuner for a different purpose. +# Please refer to https://github.com/keras-team/keras-tuner/blob/master/keras_tuner/engine/metrics_tracking.py. + import numpy as np diff --git a/python/paddle/distributed/auto_parallel/tuner/storable.py b/python/paddle/distributed/auto_parallel/tuner/storable.py index d61e53a0272..63e5eba77f1 100644 --- a/python/paddle/distributed/auto_parallel/tuner/storable.py +++ b/python/paddle/distributed/auto_parallel/tuner/storable.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Notice that the following codes are modified from KerasTuner for a different purpose. +# Please refer to https://github.com/keras-team/keras-tuner/blob/master/keras_tuner/engine/metrics_tracking.py. + import json diff --git a/python/paddle/distributed/auto_parallel/tuner/trial.py b/python/paddle/distributed/auto_parallel/tuner/trial.py index 22a6638c5ca..1cda82f1ede 100644 --- a/python/paddle/distributed/auto_parallel/tuner/trial.py +++ b/python/paddle/distributed/auto_parallel/tuner/trial.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Notice that the following codes are modified from KerasTuner to implement our own tuner. +# Please refer to https://github.com/keras-team/keras-tuner/blob/master/keras_tuner/engine/trial.py. + import hashlib import random import time diff --git a/python/paddle/distributed/auto_parallel/tuner/tunable_space.py b/python/paddle/distributed/auto_parallel/tuner/tunable_space.py index f63364c5b75..2838a019584 100644 --- a/python/paddle/distributed/auto_parallel/tuner/tunable_space.py +++ b/python/paddle/distributed/auto_parallel/tuner/tunable_space.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Notice that the following codes are modified from KerasTuner to implement our own tuner. +# Please refer to https://github.com/keras-team/keras-tuner/blob/master/keras_tuner/engine/hyperparameters.py. + import collections import contextlib import copy diff --git a/python/paddle/distributed/auto_parallel/tuner/tunable_variable.py b/python/paddle/distributed/auto_parallel/tuner/tunable_variable.py index 9549b44c48e..19f118fdde7 100644 --- a/python/paddle/distributed/auto_parallel/tuner/tunable_variable.py +++ b/python/paddle/distributed/auto_parallel/tuner/tunable_variable.py @@ -12,6 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Notice that the following codes are modified from KerasTuner to implement our own tuner. +# Please refer to https://github.com/keras-team/keras-tuner/blob/master/keras_tuner/engine/hyperparameters.py. + import numpy as np -- GitLab