I have installed the latest TensoflowJS versions as below
tensorflowjs==4.15.0
tensorflow==2.15.0
tensorflow-decision-forests==1.8.1
While converting my saved model which is trained on tensorflow 2.13.0 to Json model facing an exception as
Failure to load the inference.so custom c++ tensorflow ops. This error is likely caused the version of TensorFlow and TensorFlow Decision Forests are not compatible.
Tried downgrading the version but TensorFlow Decision Forests is compatible only with Tensoflow 2.15.0
Also couldn’t able to import tensorflowjs as tfjs facing the same exception
The issue is relate to your problem can be addressed by pip installing the closest version of tensorflow. Kindly refer the below thread (also there are many similar thread with the same issue, you can search them using search tool by tensorflowjs version issue)
Yes the version do not match so creating the issue. The version for the assignment needs to use tensorflowjs 2.0
Some of the assignment when created had different tensorflow when programmed and now tensorflow package has newer version creating this issue. One can always address by trying to match the version of tensorflow.