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

请求增加两个特性 #6

Open
youfeng1024 opened this issue Dec 5, 2024 · 0 comments
Open

请求增加两个特性 #6

youfeng1024 opened this issue Dec 5, 2024 · 0 comments

Comments

@youfeng1024
Copy link

一个是生成输出时,可以在某个地方标注出该代码所在类的类名,方便定位
print(f"MODEL==>> inputs.shape: {inputs.shape}")
二是可以控制多行选中时生成输出语句的方式,是每一句后面添加还是全部添加到后面

        x = self.LN_1(inputs)
        x = x.permute(0, 2, 1)
        x = self.timeMixer(x)
        x = x.permute(0, 2, 1)
        print(f"==>> x.shape: {x.shape}")
        print(f"==>> x.shape: {x.shape}")
        print(f"==>> x.shape: {x.shape}")
        print(f"==>> x.shape: {x.shape}")

例如有些时候使用同名变量时,默认生成在最后。如果是在每个语句后生成,能节约很多操作。例如

        x = inputs.permute(0, 2, 1)
        print(f"==>> x.shape: {x.shape}")
        x = self.conv(x)
        print(f"==>> x.shape: {x.shape}")
        x = x.permute(0, 2, 1)
        print(f"==>> x.shape: {x.shape}")
        y = self.mixer(inputs, x)
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

1 participant