class_docstr: Dict-like mapping from SharedVariable keys to their new values.
  
  This mapping supports the use of the "+" operator for the union of updates.
class_docstr_tok: ["Dict-like","mapping","from","SharedVariable","keys","to","their","new","values",".","This","mapping","supports","the","use","of","the","``","+","''","operator","for","the","union","of","updates","."]
code: def __init__(self, *key, **kwargs):
      if (
          len(key) >= 1
          and isinstance(key[0], dict)
          and len(key[0]) > 1
          and not isinstance(key[0], OrderedDict)
      ):
          # Warn when using as input a non-ordered dictionary.
          warnings.warn(
              "Initializing an `OrderedUpdates` from a "
              "non-ordered dictionary with 2+ elements could "
              "make your code non-deterministic. You can use "
              "an OrderedDict that is available at "
              "theano.compat.OrderedDict for python 2.6+."
          )
      super(OrderedUpdates, self).__init__(*key, **kwargs)
      for key in self:
          if not isinstance(key, SharedVariable):
              raise TypeError(
                  "OrderedUpdates keys must inherit from SharedVariable",
                  key,
              )
  
file_path: Theano/theano/updates.py
imports: from __future__ import absolute_import, print_function, division
  from collections import OrderedDict
  from six import iteritems
  from theano.compile.sharedvalue import SharedVariable
  import logging
  import warnings
label_desc: Use image node_id 1 to create a new OrderedUpdates object from inherited base classes: OrderedDict with example: obj = OrderedUpdates()