MPSGraph

I am running into this cryptic error message. Any idea ?

Assertion failed: (isStaticMPSType(type)), function setStaticJITypeForValue, file MPSRuntime_Project.h, line 476.

Hi @SanJones

Do you have a small script I could use to reproduce this? And could you let us know the versions of tensoflow-macos and tensorflow-metal wheels you are seeing this on and which version of the OS is this seen with?

My issue is the cryptic message. I don't understand what it means. The code is written in Swift and runs on an M1 machine. The crash happens on calling MPSGraph encode i.e. graph.encode(....). It crashes on a Mac but not on an iPhone device.

A similar issue is seen here. Same header file just different line: MPSRuntime_Project.h, line 447

https://www.reddit.com/r/StableDiffusion/comments/x8i2lc/im_using_the_lstein_implementatin_and_my_web_gui/

Is it possible to see that header file ? What could this mean?

isStaticMPSType(type)), function setStaticJITypeForValue

Thanks.

MPSGraph
 
 
Q