(A)
| 76 | |
| 77 | |
| 78 | def normalize_matrix(A): |
| 79 | assert len(A.shape) == 2 |
| 80 | A_norm = torch.linalg.norm(A, dim=-1, keepdim=True) |
| 81 | return A / A_norm |
| 82 | |
| 83 | |
| 84 | def encode_video(video_file, preprocess, model, batch_size, device): |
no outgoing calls
no test coverage detected