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

Adding Identity Module to the blocks. #10

Open
ivangvozdanovic opened this issue Jan 9, 2024 · 1 comment
Open

Adding Identity Module to the blocks. #10

ivangvozdanovic opened this issue Jan 9, 2024 · 1 comment

Comments

@ivangvozdanovic
Copy link

Hello,
I love using your library, however, I find it missing a feature that I need for my implementation. Namely, the package does not support different sizes of consecutive columns and so in order to solve this I want to add identity layers as place holders so each column is of the same size.

Would you instruct me on how to do this?

Thanks!

@arcosin
Copy link
Owner

arcosin commented Jan 16, 2024

Hey Ivangvozdanovic!
You could define one like this:
`class ProgIdent(ProgInertBlock):
def init(self):
super().init()

def runBlock(self, x):
    return x

def runActivation(self, x):
    return x`

this would define a new inert block (no laterals) that just passes through.
Alternatively, you can use the existing ProgLambda with an identity function.
Hope this helped!

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