(model)
| 11 | |
| 12 | |
| 13 | def count_parameter(model): |
| 14 | return sum(p.numel() for p in model.parameters()) |
| 15 | |
| 16 | def orthonormalize(vectors, normalize=True, start_idx=0): |
| 17 | assert (vectors.size(1) <= vectors.size(0)), 'number of vectors must be smaller or equal to the dimension' |
nothing calls this directly
no outgoing calls
no test coverage detected