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
This library is obviously hard-coded to expect logback loggers:
Exception in thread "main" java.lang.ClassCastException: org.apache.logging.slf4j.Log4jLogger cannot be cast to ch.qos.logback.classic.Logger
at org.jetbrains.kotlinx.dl.api.inference.InferenceModel.setLevel(InferenceModel.kt:64)
at org.jetbrains.kotlinx.dl.api.core.Sequential.internalFit(Sequential.kt:364)
at org.jetbrains.kotlinx.dl.api.core.Sequential.fit(Sequential.kt:313)
The text was updated successfully, but these errors were encountered:
Thanks for feedback, @quickstep24 looks like here are in battle two approaches: Keras API consistency, which uses verbose as a method parameter and log configuration traditions from JVM world. I suppose we should be closer to JVM.
Dear @quickstep24 . I removed all logback usages in the code (all of them related to the logging level set up in code) and make a step to be more JVM library. But logback dependency is in api module. What do you think? Is it enough for your request? If you will have logback dependecy and log4j dependency on classpath, you could use the following solution, isn't it?
My project uses Log4J in combination with kotlin-logging:
This library is obviously hard-coded to expect logback loggers:
The text was updated successfully, but these errors were encountered: