(self, in_obj)
Set shape based parameters of this layer given an input tuple, int
        or input layer.

        Arguments:
            in_obj (int, tuple, Layer, Tensor or dataset): object that provides shape
                                                           information for layer
Set shape based parameters of this layer given an input tuple, int
        or input layer.
Set shape based parameters of this layer given an input tuple int or input layer .
def configure(self, in_obj):
        """
        Set shape based parameters of this layer given an input tuple, int
        or input layer.

        Arguments:
            in_obj (int, tuple, Layer, Tensor or dataset): object that provides shape
                                                           information for layer
        """
        if isinstance(in_obj, Layer):
            self.prev_layer = in_obj
            self.in_shape = in_obj.out_shape
            if self.parallelism == "Unknown":
                self.parallelism = in_obj.parallelism
        else:
            self.prev_layer = None
            if isinstance(in_obj, (tuple, int, list)):
                self.in_shape = in_obj  # input is a shape tuple or int directly
            elif isinstance(in_obj, Tensor):
                self.in_shape = (in_obj.shape[0], in_obj.shape[1] // self.be.bsz)
            else:
                self.in_shape = in_obj.shape
def configure ( self , in_obj ) : if isinstance ( in_obj , Layer ) : self . prev_layer = in_obj self . in_shape = in_obj . out_shape if self . parallelism == "Unknown" : self . parallelism = in_obj . parallelism else : self . prev_layer = None if isinstance ( in_obj , ( tuple , int , list ) ) : self . in_shape = in_obj # input is a shape tuple or int directly elif isinstance ( in_obj , Tensor ) : self . in_shape = ( in_obj . shape [ 0 ] , in_obj . shape [ 1 ] // self . be . bsz ) else : self . in_shape = in_obj . shape