parameters: (num_grid_point)
return_statement: return grid
docstring: output [num_grid_point, 2]
docstring_summary: output [num_grid_point, 2]
docstring_tokens: output [ num_grid_point 2 ]
function: def gen_1d_grid(num_grid_point):
      """
      output [num_grid_point, 2]
      """
      x = tf.lin_space(-0.2, 0.2, num_grid_point)
      grid = tf.reshape(x, [-1, 1])  # [2, 2, 2] -> [4, 2]
      return grid
function_tokens: def gen_1d_grid ( num_grid_point ) : x = tf . lin_space ( - 0.2 , 0.2 , num_grid_point ) grid = tf . reshape ( x , [ - 1 , 1 ] ) # [2, 2, 2] -> [4, 2] return grid