# Path: tf_slim/layers/summaries.py
# def _add_scalar_summary(tensor, tag=None):
# def _add_histogram_summary(tensor, tag=None):
# def summarize_activation(op):
# def summarize_tensor(tensor, tag=None):
# def summarize_tensors(tensors, summarizer=summarize_tensor):
# def summarize_collection(collection,
#                          name_filter=None,
#                          summarizer=summarize_tensor):
# def summarize_activations(name_filter=None, summarizer=summarize_activation):


import tensorflow.compat.v1 as tf
from tf_slim.layers import summaries as summaries_lib
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import nn_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for regularizers."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=g-direct-tensorflow-import


def setUpModule():
  tf.disable_eager_execution()


class SummariesTest(test.TestCase):

  def test_summarize_scalar_tensor(self):
    with self.cached_session():
      scalar_var = variables.Variable(1)

# Path: tf_slim/layers/summaries.py
# def _add_scalar_summary(tensor, tag=None):
# def _add_histogram_summary(tensor, tag=None):
# def summarize_activation(op):
# def summarize_tensor(tensor, tag=None):
# def summarize_tensors(tensors, summarizer=summarize_tensor):
# def summarize_collection(collection,
#                          name_filter=None,
#                          summarizer=summarize_tensor):
# def summarize_activations(name_filter=None, summarizer=summarize_activation):


# Path: tf_slim/layers/summaries_test.py
import tensorflow.compat.v1 as tf
from tf_slim.layers import summaries as summaries_lib
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import nn_ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import test

#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for regularizers."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=g-direct-tensorflow-import


def setUpModule():
  tf.disable_eager_execution()


class SummariesTest(test.TestCase):

  def test_summarize_scalar_tensor(self):
    with self.cached_session():
      scalar_var = variables.Variable(1)

      summary_op = summaries_lib.summarize_tensor(scalar_var)