Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorboard/summary/__init__.py: 69%

13 statements  

« prev     ^ index     » next       coverage.py v7.4.0, created at 2024-01-03 07:57 +0000

1# Copyright 2018 The TensorFlow Authors. All Rights Reserved. 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14# ============================================================================== 

15"""Central API entry point for summary operations. 

16 

17This module exposes summary ops for the standard TensorBoard plugins. 

18""" 

19 

20# If the V1 summary API is accessible, load and re-export it here. 

21try: 

22 from tensorboard.summary import v1 # noqa: F401 

23except ImportError: 

24 pass 

25 

26# Load the V2 summary API if accessible. 

27try: 

28 from tensorboard.summary import v2 # noqa: F401 

29 from tensorboard.summary.v2 import * # noqa: F401 

30except ImportError: 

31 pass 

32 

33from tensorboard.summary._output import DirectoryOutput # noqa: F401 

34from tensorboard.summary._output import Output # noqa: F401 

35from tensorboard.summary._writer import Writer # noqa: F401