class_docstr: CWR* Strategy.
  
  This plugin does not use task identities.
class_docstr_tok: ["CWR","*","Strategy",".","This","plugin","does","not","use","task","identities","."]
docstr: set trained weights
docstr_tok: ["set","trained","weights"]
code: def set_consolidate_weights(self):
      """set trained weights"""
  
      with torch.no_grad():
          cwr_layer = self.get_cwr_layer()
          assert cwr_layer is not None, "Could not find the CWR layer."
  
          for c, w in self.model.saved_weights.items():
              cwr_layer.weight[c].copy_(
                  torch.from_numpy(self.model.saved_weights[c])
              )
  
file_path: avalanche/avalanche/training/plugins/cwr_star.py
imports: import logging
  from collections import defaultdict
  from typing import Optional
  import numpy
  import torch
  from torch.nn import Linear
  from avalanche.training.plugins.strategy_plugin import SupervisedPlugin
  from avalanche.training.utils import examples_per_class, get_last_fc_layer, get_layer_by_name, freeze_everything, unfreeze_everything
label_desc: Use image node_id 5 for calling the CWRStarPlugin obj's underlying member method code with example usage: obj.set_consolidate_weights() without return types