vai_p_tensorflow2 は、Functional API または Sequential API によって作成された Keras モデルのみをサポートします。サブクラス モデル はサポートしません。