# Path: piecewisecrf/slim/variables.py
# MODEL_VARIABLES = '_model_variables_'
# VARIABLES_TO_RESTORE = '_variables_to_restore_'
# def add_variable(var, restore=True):
# def get_variables(scope=None, suffix=None):
# def get_variables_to_restore():
# def get_variables_by_name(given_name, scope=None):
# def get_unique_variable(name):
#   def __init__(self,
#                num_parameter_servers=0,
#                ps_device='/job:ps',
#                placement='CPU:0'):
#   def __call__(self, op):
# def variable_device(device, name):
# def global_step(device=''):
# def variable(name, shape=None, dtype=tf.float32, initializer=None,
#              regularizer=None, trainable=True, collections=None, device='',
#              restore=True):
# class VariableDeviceChooser(object):


import tensorflow as tf
from piecewisecrf.slim import scopes
from piecewisecrf.slim import variables
# Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 slim.variables."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




class VariablesTest(tf.test.TestCase):

  def testCreateVariable(self):
    with self.test_session():
      with tf.variable_scope('A'):

# Path: piecewisecrf/slim/variables.py
# MODEL_VARIABLES = '_model_variables_'
# VARIABLES_TO_RESTORE = '_variables_to_restore_'
# def add_variable(var, restore=True):
# def get_variables(scope=None, suffix=None):
# def get_variables_to_restore():
# def get_variables_by_name(given_name, scope=None):
# def get_unique_variable(name):
#   def __init__(self,
#                num_parameter_servers=0,
#                ps_device='/job:ps',
#                placement='CPU:0'):
#   def __call__(self, op):
# def variable_device(device, name):
# def global_step(device=''):
# def variable(name, shape=None, dtype=tf.float32, initializer=None,
#              regularizer=None, trainable=True, collections=None, device='',
#              restore=True):
# class VariableDeviceChooser(object):


# Path: piecewisecrf/slim/variables_test.py
import tensorflow as tf
from piecewisecrf.slim import scopes
from piecewisecrf.slim import variables

# Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 slim.variables."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function




class VariablesTest(tf.test.TestCase):

  def testCreateVariable(self):
    with self.test_session():
      with tf.variable_scope('A'):

        a = variables.variable('a', [5])