Hello sir, thanks for your code.
But I met a error when I tried to replicate your code.Here is the ERROR:

I installed the corresponding version of the dependency you requested in this environment.
Python = 3.8.12
Tensorflow = 2.3.0
rdkit = 2021.03.4
.....
I have tried the older version of rdkit and newer version of rdkit , the error is also exist.
Hello sir, thanks for your code.

But I met a error when I tried to replicate your code.Here is the ERROR:
I installed the corresponding version of the dependency you requested in this environment.
Python = 3.8.12
Tensorflow = 2.3.0
rdkit = 2021.03.4
.....
I have tried the older version of rdkit and newer version of rdkit , the error is also exist.