from .layers.utils.LayerManager import *

class name_scope(object):
    def __init__(self, name):
        self.name = name
    def __enter__(self):
        LayerManager.NAME_SCOPE += "%s/" % self.name
    def __exit__(self, *dummy):
        LayerManager.NAME_SCOPE = LayerManager.NAME_SCOPE[:-len(self.name)-1]

def get_layer(name):
    return LayerManager.get_layer(name)

# operators
from . import operators as O
add = O.add
subtract = O.subtract
multiply = O.multiply 
matmul = O.matmul 
dot = O.dot
positive = O.positive
negative = O.negative
reduce_mean = O.reduce_mean
reduce_max = O.reduce_max
reduce_min = O.reduce_min

@@ -620,8 +620,140 @@
 uce_min%0A
+equal = O.equal%0Anot_equal = O.not_equal%0Agreater_equal = O.greater_equal%0Agreater = O.greater%0Aless_equal = O.less_equal%0Aless = O.less%0A

add wrapper of Compare Operators