You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val model = Sequential.of(
Input(...),
Dense(...),
Dropout(...),
Dense(...),
Dense(1)
)
model.compile(...)
model.fit(...)
model.save(dir, TF_GRAPH_CUSTOM_VARIABLES, true, FAIL_IF_EXISTS)
then I reload and use it with
val model = InferenceModel.load(dir)
model.predictSoftly(...)
But I get an exception:
Exception in thread "main" kotlin.UninitializedPropertyAccessException: lateinit property reshapeFunction has not been initialized
at org.jetbrains.kotlinx.dl.api.inference.InferenceModel.predictSoftly(InferenceModel.kt:128)
at org.jetbrains.kotlinx.dl.api.inference.InferenceModel.predictSoftly$default(InferenceModel.kt:127)
My fault or is this a bug?
Not sure about SavingFormat because two entries have same description.
The text was updated successfully, but these errors were encountered:
I store a model with
then I reload and use it with
But I get an exception:
My fault or is this a bug?
Not sure about
SavingFormat
because two entries have same description.The text was updated successfully, but these errors were encountered: