class_docstr: Solve a system of linear equations.
  
  For on CPU and GPU.
class_docstr_tok: ["Solve","a","system","of","linear","equations",".","For","on","CPU","and","GPU","."]
code: def infer_shape(self, node, shapes):
      Ashape, Bshape = shapes
      rows = Ashape[1]
      if len(Bshape) == 1:  # b is a Vector
          return [(rows,)]
      else:
          cols = Bshape[1]  # b is a Matrix
          return [(rows, cols)]
  
imports: from __future__ import absolute_import, print_function, division
  import logging
  import warnings
  from six.moves import xrange
  import numpy
  from theano import tensor
  import theano.tensor
  from theano.tensor import as_tensor_variable
  from theano.gof import Op, Apply
label_desc: Use image node_id 5 for calling the Solve obj's underlying member method code with example usage: obj.infer_shape(node, shapes) and returns: list, list