andrewqian123 commited on
Commit
c02c994
·
verified ·
1 Parent(s): 4331010

Update modeling_minicpmv.py

Browse files
Files changed (1) hide show
  1. 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 + 1], " OTHERSIDE")
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