I’d like to add some layer into a Pytorch based neural model. Basically I am trying to combine to codes together.
But I notice that the layer I want to add is implemented by Tensorflow. I’d like to know if there is an easy way to integrate a TensorFlow layer into a Pytorch neural model… ?
The error is shown as:
module ‘torch.nn’ has no attribute ‘tensorflow_layer’
I’m afraid there is not tensorflow and pytorch are two very different frameworks. But depending on the layer, it can be fairly easy to reimplement in pytorch.
Thank you very much for your reply. Yes, I understand that PyTorch can implement the same simple layer. But the layer I am going to add is a complex layer, which is dynamically changing during the training. So it is really complex to rewrite the whole code by using Pytorch…