Example #1
0
 def _data_provider(self):
     if self._underlying_data_provider is not None:
         return self._underlying_data_provider
     with self._data_provider_init_lock:
         if self._underlying_data_provider is not None:
             return self._underlying_data_provider
         # TODO(cais): Implement factory for DataProvider that takes into account
         # the settings.
         dp = debug_data_provider.LocalDebuggerV2DataProvider(self._logdir)
         self._underlying_data_provider = dp
         return dp
    def __init__(self, context):
        """Instantiates Debugger V2 Plugin via TensorBoard core.

        Args:
          context: A base_plugin.TBContext instance.
        """
        super(DebuggerV2Plugin, self).__init__(context)
        self._logdir = context.logdir
        # TODO(cais): Implement factory for DataProvider that takes into account
        # the settings.
        self._data_provider = debug_data_provider.LocalDebuggerV2DataProvider(
            self._logdir)