[Docs] Improve malformed exception caused by backslash line continuations (#31694)
Signed-off-by: maang <maang_h@163.com> Signed-off-by: maang <55082429+maang-h@users.noreply.github.com> Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com> Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
@@ -428,14 +428,13 @@ class Phi4MMImageEncoder(nn.Module):
|
||||
output_imgs.append(torch.cat([sub_img, self.glb_GN, glb_img], dim=1))
|
||||
else:
|
||||
raise NotImplementedError(
|
||||
f'hd_transform_order = {self.hd_transform_order}, "\
|
||||
"not implemented'
|
||||
f"hd_transform_order = {self.hd_transform_order}, not implemented"
|
||||
)
|
||||
|
||||
# temp_len = int((h*w+1)*144 + 1 + (h+1)*12)
|
||||
assert temp_len == output_imgs[-1].shape[1], (
|
||||
f'temp_len: {temp_len}, output_imgs[-1].shape[1]: "\
|
||||
"{output_imgs[-1].shape[1]}'
|
||||
f"temp_len: {temp_len}, output_imgs[-1].shape[1]: "
|
||||
f"{output_imgs[-1].shape[1]}"
|
||||
)
|
||||
|
||||
output_len.append(temp_len)
|
||||
|
||||
Reference in New Issue
Block a user