Update modeling_minicpmv.py
Browse files- modeling_minicpmv.py +2 -2
modeling_minicpmv.py
CHANGED
|
@@ -309,8 +309,8 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
|
|
| 309 |
to_add.append(0)
|
| 310 |
# tensor = tensor.to(self.device)
|
| 311 |
if bound != 0:
|
| 312 |
-
print(tensor[0,bound], " BOUND")
|
| 313 |
-
print(tensor[0,bound
|
| 314 |
print(pad_embedding_vector, " VECTOR")
|
| 315 |
print(tensor.shape, "UPDATED_SHAPE")
|
| 316 |
batch[place] = tensor
|
|
|
|
| 309 |
to_add.append(0)
|
| 310 |
# tensor = tensor.to(self.device)
|
| 311 |
if bound != 0:
|
| 312 |
+
print(tensor[0,bound-1], " BOUND")
|
| 313 |
+
print(tensor[0,bound], " OTHERSIDE")
|
| 314 |
print(pad_embedding_vector, " VECTOR")
|
| 315 |
print(tensor.shape, "UPDATED_SHAPE")
|
| 316 |
batch[place] = tensor
|