MCPcopy Index your code
hub / github.com/tensorflow/datasets / load

Class load

tensorflow_datasets/core/logging/__init__.py:428–449  ·  view source on GitHub ↗

Decorator to call `load` method on registered loggers.

Source from the content-addressed store, hash-verified

426
427
428class load(_FunctionDecorator): # pylint: disable=invalid-name
429 """Decorator to call `load` method on registered loggers."""
430
431 def _call_logger_method(
432 self,
433 logger_method: _LoggerMethod,
434 args: Any,
435 kwargs: Any,
436 ):
437 logger_method(
438 name=args[0] if args else kwargs["name"],
439 split=kwargs.get("split"),
440 data_dir=kwargs.get("data_dir"),
441 batch_size=kwargs.get("batch_size"),
442 shuffle_files=kwargs.get("shuffle_files"),
443 download=kwargs.get("download"),
444 as_supervised=kwargs.get("as_supervised"),
445 decoders=kwargs.get("decoders"),
446 read_config=kwargs.get("read_config"),
447 with_info=kwargs.get("with_info"),
448 try_gcs=kwargs.get("try_gcs"),
449 )
450
451
452class builder(_FunctionDecorator): # pylint: disable=invalid-name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected