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

'tensorflow.python.framework.ops.EagerTensor' object has no attribute '_info' #1162

Open
Tara-Liu opened this issue Mar 30, 2023 · 1 comment

Comments

@Tara-Liu
Copy link

Issue Description

When I use the tensor output from TensorFlow to pass to the tl layer, an error will be reported

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute '_info'

Reproducible Code

  • Which OS are you using ? windows10
# ======================================================== #
###### THIS CODE IS AN EXAMPLE, REPLACE WITH YOUR OWN ######
# ======================================================== #

    model = tf.keras.applications.VGG16(include_top=False)
    img = tf.convert_to_tensor(cv2.imread('test.png') / 255.)
    img = tf.expand_dims(img, 0)
    feature = model(img)

    pool = tl.layers.CornerPool2d(mode='TopLeft',name='cornerpool2d')(feature)

# ======================================================== #
###### THIS CODE IS AN EXAMPLE, REPLACE WITH YOUR OWN ######
# ======================================================== #
@pengjun0801
Copy link

Has this issue been resolved?

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