Skip to content

ReplicationReflectionPad @pytorch combines ReplicationPad and ReflectionPad to prevent errors from being reported due to small input sizes when using non-constant padding types.

License

Notifications You must be signed in to change notification settings

PsycheHalo/RRPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RRPad

ReplicationReflectionPad combines ReplicationPad and ReflectionPad to prevent errors from being reported due to small input sizes when using non-constant padding types.

Install

pip install RRPad

Use

from RRPad import ReplicationReflectionPad1d,ReplicationReflectionPad2d
...
pad=ReplicationReflectionPad1d(paddingSize)
input=torch.randn((1,2,3))
output=pad(input)

HomePage

https://github.com/PsycheHalo/RRPad/

About

ReplicationReflectionPad @pytorch combines ReplicationPad and ReflectionPad to prevent errors from being reported due to small input sizes when using non-constant padding types.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages