On the L20, everything is fine when the matrix latitude is 192,3, and half of the matrix is calculated incorrectly when the matrix latitude is 193,3. This problem is not present on the V100. I’m not sure about the situation on other gpus, as I only have two cards here for testing at the moment.
I would like to ask why L20 has this problem?
import numpy as np
A = np.ones((192, 3))
# A = np.ones((193, 3)) # when you try here, sth wrong
cam_ext = np.array([[ 1, 0, 0, 0],
[0., 1, 0, 0],
[ 0., 0, 1, 0],
[ 0., 0. , 0. , 1. ]])
A_hom = np.append(A, np.ones((A.shape[0], 1)), axis=1)
B = np.dot(cam_ext, A_hom.T)
# B = cam_ext @ A_hom.T
print(B)
New contributor
刘子骥 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2