Skip to content

Layer to split input into tiles and stitch them back together.

License

Notifications You must be signed in to change notification settings

m4-k131/tf2_TileLayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

tf2_TileLayer

Split a 4D-Tensor into non-overlapping Tiles

Tile2D:

Reshapes a Tensor with shape [Batch_size, h, w, channels] into a Tensor with shape [Batch_size, n*n, h/n, w/n, channels]

Untile2D:

Reshapes a Tensor with shape [Batch_size, n* n, h, w, channels] into a Tensor with shape [Batch_size, h* n, w* n, channels]

Arguments:

n: Number of vertical and horizontal tiles. Input.shape[1] and Input.shape[2] (height & width) must be divisible by n to work proberly.

About

Layer to split input into tiles and stitch them back together.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages