class_docstr: Base layer class. Defines basic API for all layer objects.
  Implementation inspired by keras (http://keras.io).
  
  # Properties
      name: String, defines the variable scope of the layer.
      logging: Boolean, switches Tensorflow histogram logging on/off
  
  # Methods
      _call(inputs): Defines computation graph of layer
          (i.e. takes input, returns output)
      __call__(inputs): Wrapper for _call()
      _log_vars(): Log all variables
class_docstr_tok: ["Base","layer","class",".","Defines","basic","API","for","all","layer","objects",".","Implementation","inspired","by","keras","(","http",":","\/\/keras.io",")",".","#","Properties","name",":","String",",","defines","the","variable","scope","of","the","layer",".","logging",":","Boolean",",","switches","Tensorflow","histogram","logging","on\/off","#","Methods","_call","(","inputs",")",":","Defines","computation","graph","of","layer","(","i.e",".","takes","input",",","returns","output",")","__call__","(","inputs",")",":","Wrapper","for","_call","(",")","_log_vars","(",")",":","Log","all","variables"]
code: def __init__(self, **kwargs):
      allowed_kwargs = {"name", "logging"}
      for kwarg in kwargs.keys():
          assert kwarg in allowed_kwargs, (
              "Invalid keyword argument: " + kwarg
          )
      name = kwargs.get("name")
      if not name:
          layer = self.__class__.__name__.lower()
          name = layer + "_" + str(get_layer_uid(layer))
      self.name = name
      self.vars = {}
      logging = kwargs.get("logging", False)
      self.logging = logging
      self.sparse_inputs = False
  
file_path: OpenNE/src/openne/gcn/layers.py
imports: from .inits import *
  import tensorflow
label_desc: Use image node_id 1 to create a new Layer object from inherited base classes: object with example: obj = Layer()