class_docstr: Observation and action spaces. Describes valid actions and observations.
  Similar to :gym:`gym.Space <#spaces>`.
  
  Args:
      shape (optional): Shape of the space, a tuple. If not
          given, infers from :attr:`low` and :attr:`high`.
      low (optional): Lower bound (inclusive) of each dimension of the
          space. Must have
          shape as specified by :attr:`shape`, and of the same shape with
          with :attr:`high` (if given). If `None`, set to `-inf` for each
          dimension.
      high (optional): Upper bound (inclusive) of each dimension of the
          space. Must have
          shape as specified by :attr:`shape`, and of the same shape with
          with :attr:`low` (if given). If `None`, set to `inf` for each
          dimension.
      dtype (optional): Data type of elements in the space. If not given,
          infers from :attr:`low` (if given) or set to `float`.
  
  Example:
  
      .. code-block:: python
  
          s = Space(low=0, high=10, dtype=np.int32)
          #s.contains(2) == True
          #s.contains(10) == True
          #s.contains(11) == False
          #s.shape == ()
  
          s2 = Space(shape=(2,2), high=np.ones([2,2]), dtype=np.float)
          #s2.low == [[-inf, -inf], [-inf, -inf]]
          #s2.high == [[1., 1.], [1., 1.]]
class_docstr_tok: ["Observation","and","action","spaces",".","Describes","valid","actions","and","observations",".","Similar","to",":","gym",":","`","gym.Space","<","#","spaces",">","`",".","Args",":","shape","(","optional",")",":","Shape","of","the","space",",","a","tuple",".","If","not","given",",","infers","from",":","attr",":","`","low","`","and",":","attr",":","`","high","`",".","low","(","optional",")",":","Lower","bound","(","inclusive",")","of","each","dimension","of","the","space",".","Must","have","shape","as","specified","by",":","attr",":","`","shape","`",",","and","of","the","same","shape","with","with",":","attr",":","`","high","`","(","if","given",")",".","If","`","None","`",",","set","to","`","-inf","`","for","each","dimension",".","high","(","optional",")",":","Upper","bound","(","inclusive",")","of","each","dimension","of","the","space",".","Must","have","shape","as","specified","by",":","attr",":","`","shape","`",",","and","of","the","same","shape","with","with",":","attr",":","`","low","`","(","if","given",")",".","If","`","None","`",",","set","to","`","inf","`","for","each","dimension",".","dtype","(","optional",")",":","Data","type","of","elements","in","the","space",".","If","not","given",",","infers","from",":","attr",":","`","low","`","(","if","given",")","or","set","to","`","float","`",".","Example",":","..","code-block",":",":","python","s","=","Space","(","low=0",",","high=10",",","dtype=np.int32",")","#","s.contains","(","2",")","==","True","#","s.contains","(","10",")","==","True","#","s.contains","(","11",")","==","False","#","s.shape","==","(",")","s2","=","Space","(","shape=","(","2,2",")",",","high=np.ones","(","[","2,2","]",")",",","dtype=np.float",")","#","s2.low","==","[","[","-inf",",","-inf","]",",","[","-inf",",","-inf","]","]","#","s2.high","==","[","[","1.",",","1",".","]",",","[","1.",",","1",".","]","]"]
docstr: Upper bound of the space.
          
docstr_tok: ["Upper","bound","of","the","space","."]
code: def high(self):
      """Upper bound of the space."""
      return self._high
  
file_path: texar/texar/tf/agents/agent_utils.py
imports: import numpy
label_desc: Use image node_id 5 for calling the Space obj's underlying member method code with example usage: obj.high() and returns: self