class_docstr: Base (global) object available to all other classes.
  
  Attributes:
      be (Backend): Hardware backend being used.
class_docstr_tok: ["Base","(","global",")","object","available","to","all","other","classes",".","Attributes",":","be","(","Backend",")",":","Hardware","backend","being","used","."]
docstr: helper method to check whether the definition
  dictionary is defining a NervanaObject child,
  if so it will instantiate that object and replace
  the dictionary element with an instance of that object
docstr_tok: ["helper","method","to","check","whether","the","definition","dictionary","is","defining","a","NervanaObject","child",",","if","so","it","will","instantiate","that","object","and","replace","the","dictionary","element","with","an","instance","of","that","object"]
code: def recursive_gen(pdict, key):
      """
      helper method to check whether the definition
      dictionary is defining a NervanaObject child,
      if so it will instantiate that object and replace
      the dictionary element with an instance of that object
      """
      if type(pdict[key]) is dict and "type" in pdict[key]:
          if "config" not in pdict[key]:
              # assume empty params if 'config' key missing
              # needed to keep yaml deserialization short
              pdict[key]["config"] = {}
          ccls = load_class(pdict[key]["type"])
          pdict[key] = ccls.gen_class(pdict[key]["config"])
  
file_path: neon/neon/__init__.py
imports: from __future__ import print_function
  from builtins import zip
  from copy import deepcopy
  import inspect
  import logging
  from neon.util.persist import load_class
label_desc: Use image node_id 2 for calling the NervanaObject obj's underlying member method code with example usage: obj.recursive_gen(pdict, key) without return types