Upload model
Browse files- 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):
|