[tune] Added WandbLogger (#9725)

Co-authored-by: Richard Liaw <rliaw@berkeley.edu>
Co-authored-by: Kai Fricke <kai@anyscale.com>
This commit is contained in:
krfricke
2020-07-30 22:09:03 +02:00
committed by GitHub
parent 68f3fec744
commit 619e44e54a
24 changed files with 1376 additions and 6 deletions
+9 -1
View File
@@ -369,7 +369,15 @@ def detect_checkpoint_function(train_func, abort=False):
def wrap_function(train_func):
class ImplicitFunc(FunctionRunner):
if hasattr(train_func, "__mixins__"):
inherit_from = train_func.__mixins__ + (FunctionRunner, )
else:
inherit_from = (FunctionRunner, )
class ImplicitFunc(*inherit_from):
_name = train_func.__name__ if hasattr(train_func, "__name__") \
else "func"
def _trainable_func(self, config, reporter, checkpoint_dir):
func_args = inspect.getfullargspec(train_func).args
if len(func_args) > 1: # more arguments than just the config