Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About ResNet #1831

Open
HUKAIR opened this issue Sep 2, 2024 · 1 comment
Open

About ResNet #1831

HUKAIR opened this issue Sep 2, 2024 · 1 comment

Comments

@HUKAIR
Copy link

HUKAIR commented Sep 2, 2024

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
Copy link
Contributor

vl-dud commented Sep 6, 2024

from deepxde.backend import tf

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants