Weird error using az.waic

That’s weird. It seems your trace/InferenceData has some weird type. Can you share the trace/InferenceData?

Also I recommend using loo instead of waic.