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

ASSERT(input.dims(2) <= settings.xmmRegs() * 4) failed #5

Closed
b4rthm opened this issue Jan 14, 2020 · 2 comments
Closed

ASSERT(input.dims(2) <= settings.xmmRegs() * 4) failed #5

b4rthm opened this issue Jan 14, 2020 · 2 comments

Comments

@b4rthm
Copy link

b4rthm commented Jan 14, 2020

Hello,

I'm trying to compile a simple model

inputs = Input((120,160,1))
conv1 = Conv2D(64, 3, activation = 'relu', padding = 'same')(inputs)
pool1 = MaxPooling2D(pool_size=(2, 2))(conv1)
conv2 = Conv2D(128, 3, activation = 'relu', padding = 'same')(pool1)
up1 = UpSampling2D(size = (2,2))(conv2)
merge = Concatenate()([up1,conv1]                 )
conv3 = Conv2D(64, 3, activation = 'relu', padding = 'same')(merge)
outputs = Conv2D(64, (1,1))(conv3)

model = Model(input = inputs, output = outputs) 

but I get the following error, which i don't fully understand.

/home/barth/Workspace/CompiledNN/Src/CompiledNN/CompiledNN/Operations/UpSampling2D.cpp:25: ASSERT(input.dims(2) <= settings.xmmRegs() * 4) failed
Aborted (core dumped)

@ahasselbring
Copy link
Member

Hi,
the current implementation of the Upsampling2D layer requires that all channels of a single pixel fit into the SSE registers, which amounts to a limit of 32 channels on 32-bit CPUs and 64 channels on 64-bit CPUs.

@b4rthm
Copy link
Author

b4rthm commented Jan 15, 2020

thanks, that solved the Problem.

@b4rthm b4rthm closed this as completed Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants