MTLTextureDescriptor has width (16900) greater than the maximum allowed size of 16384.
See original GitHub issuevalidateTextureDimensions:1075: failed assertion `MTLTextureDescriptor has width (16900) greater than the maximum allowed size of 16384.’
Upgraded to MacOs Majove, and started getting this error when nothing else was upgraded.
This error occurs when converting keras model - coremltools.converters.keras.convert(model)
Here is the model (this worked fine before upgrading):
LEARNING_RATE = 1e-3 model = Sequential() model.add(Reshape((4,16900,3), input_shape=(1,202800))) model.add(Conv2D(32, (8, 8), strides=(4, 4), padding=‘same’ ,kernel_initializer=‘random_uniform’)) model.add(Activation(‘relu’))
model.add(Conv2D(64, (4, 4), strides=(2, 2), padding=‘same’ ,kernel_initializer=‘random_uniform’)) model.add(Activation(‘relu’))
model.add(Conv2D(64, (3, 3), strides=(1, 1), padding=‘same’ ,kernel_initializer=‘random_uniform’)) model.add(Activation(‘relu’))
model.add(Flatten()) model.add(Dense(512)) model.add(Activation(‘relu’)) model.add(Dense(4))
adam = Adam(lr=LEARNING_RATE) model.compile(loss=‘mse’, optimizer=‘adam’) model.summary()
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Related StackOverflow Question
There is no workaround for this. That is a hardcoded limit that is imposed. See https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf for the limit of each chip, e.g.:
Since we have not heard back here, I’m going to close this issue.