CNN combined with TF DF Random forest model

Thank you @rcauvin and @Mathieu for your suggestions. I am trying to pass the CNN model’s FC output to the RF model as an input and get the regression output from the RF model. I would like to use a Keras tuner for CNN and gridserachCV for the RF model to tune the hyperparameters. Do you think is it possible to build and train this model using Keras tuner on the TensorFlow platform(as this is also a kind of combined model but used one after the other)?

Any suggestions to implement are appreciated.
Thank you very much.