coda prompt utils#
This package contains utility functions for the CoDA Prompt model. Implements a custom version of ViT to add prompt parameters.
Functions#
- models.coda_prompt_utils.gram_schmidt(vv, start_c, end_c, return_in_parameter=True)[source]#
Code for this function is modified from: https://github.com/legendongary/pytorch-gram-schmidt/blob/master/gram_schmidt.py
Perform Gram-Schmidt orthogonalization on the input matrix vv.