code: def _set_var_res(self, weights):
          
          if weights is None:
              return
  
          # layer 1
          motif_base_weights_raw = np.swapaxes(weights["motif_base_weights"], 2, 0)
          motif_base_weights = motif_base_weights_raw[np.newaxis]
          motif_bias = weights["motif_bias"]
  
          feature_weights = weights["feature_weights"]
          spline_weights = weights["spline_weights"]
  
          # filter
          motif_weights = weights["motif_weights"]
          final_bias = weights["final_bias"]
  
          var_res = {
              "motif_base_weights": motif_base_weights,
              "motif_bias": motif_bias,
              "spline_weights": spline_weights,
              "feature_weights": feature_weights,
              "motif_weights": motif_weights,
              "final_bias": final_bias
          }
  
          # cast everything to float32
          var_res = {key: value.astype(np.float32) if value is not None else None for key, value in var_res.items()}
  
          self._var_res = var_res
docs: Transform the weights to var_res