Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Order Indicator #31

Open
JudgeLJX opened this issue Oct 24, 2024 · 1 comment
Open

The Order Indicator #31

JudgeLJX opened this issue Oct 24, 2024 · 1 comment

Comments

@JudgeLJX
Copy link

Hi, Thanks for your work.

Could you tell me is there the order indicator code here? although there is no spacing curve in the current code.
If not, could you please share this part of the code if possible?

Best Regards

@LMD0311
Copy link
Owner

LMD0311 commented Nov 5, 2024

Apologies for the delayed response. Due to a busy schedule, I have not yet organized the code. Here’s an example of the order indicator:

self.OrderScale_gamma_1, self.OrderScale_beta_1 = init_OrderScale(self.trans_dim)

def init_OrderScale(dim):
    gamma = nn.Parameter(torch.ones(dim))
    beta = nn.Parameter(torch.zeros(dim))
    nn.init.normal_(gamma, mean=1, std=.02)
    nn.init.normal_(beta, std=.02)
    return gamma, beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants