crumb commited on
Commit
83654d1
·
1 Parent(s): f6a8bfb

Upload model

Browse files
Files changed (1) hide show
  1. modeling_gzipembed.py +1 -1
modeling_gzipembed.py CHANGED
@@ -16,7 +16,7 @@ class GZIPEmbeddingModel(PreTrainedModel):
16
  self.reduction_head = None
17
  self.dummy_parameter = torch.nn.Parameter(torch.ones(1))
18
 
19
- def forward(self, prompt, num_procs=16):
20
  global calculate_ncd_row
21
  global p
22
  def calculate_ncd_row(data_row):
 
16
  self.reduction_head = None
17
  self.dummy_parameter = torch.nn.Parameter(torch.ones(1))
18
 
19
+ def forward(self, prompt, num_procs=16, return_tensor=True):
20
  global calculate_ncd_row
21
  global p
22
  def calculate_ncd_row(data_row):