parameters: (self, params)
docstring: Initializes an empty observation tensor.
docstring_summary: Initializes an empty observation tensor.
docstring_tokens: Initializes an empty observation tensor .
function: def __init__(self, params):
      """Initializes an empty observation tensor."""
      if params:
        raise ValueError(f"Observation parameters not supported; passed {params}")
      # The observation should contain a 1-D tensor in `self.tensor` and a
      # dictionary of views onto the tensor, which may be of any shape.
      # Here the observation is indexed `(cell state, row, column)`.
      shape = (1 + _NUM_PLAYERS, _NUM_ROWS, _NUM_COLS)
      self.tensor = np.zeros(np.prod(shape), np.float32)
      self.dict = {"observation": np.reshape(self.tensor, shape)}
function_tokens: def __init__ ( self , params ) : if params : raise ValueError ( f"Observation parameters not supported; passed {params}" ) # The observation should contain a 1-D tensor in `self.tensor` and a # dictionary of views onto the tensor, which may be of any shape. # Here the observation is indexed `(cell state, row, column)`. shape = ( 1 + _NUM_PLAYERS , _NUM_ROWS , _NUM_COLS ) self . tensor = np . zeros ( np . prod ( shape ) , np . float32 ) self . dict = { "observation" : np . reshape ( self . tensor , shape ) }