lululxvi / deepxde

A library for scientific machine learning and physics-informed learning
https://deepxde.readthedocs.io
GNU Lesser General Public License v2.1
2.77k stars 760 forks source link

About ResNet #1831

Open HUKAIR opened 2 months ago

HUKAIR commented 2 months ago

i try to import ResNet. import deepxde as dde import tensorflow as tf net = dde.nn.tensorflow_compat_v1.ResNet(2, 1, 50, 3, "tanh", "Glorot uniform") but AttributeError: module 'deepxde.nn.tensorflow' has no attribute 'tensorflow_compat_v1' in the latest version deepxde and tensorflow. i'll appreciate for the answer.

vl-dud commented 2 months ago
from deepxde.backend import tf

net = tf.keras.applications.resnet50.ResNet50(weights='imagenet')