Giter VIP home page Giter VIP logo

Comments (3)

AkashKumarSingh11032001 avatar AkashKumarSingh11032001 commented on April 28, 2024

Hi @maybeLee, I tried to reproduce the issue, from the given constraint/dummy code, and i am able to get the error output as
image

and after spending some time over your issue, got to know, this issue may be arised due to mismatch in the package version.

from tensorflow.

maybeLee avatar maybeLee commented on April 28, 2024

HI @AkashKumarSingh11032001
My previous code is working for tensorflow 2.15.0 and it seems that this API does not support the weights parameter in 2.16.0.
Here is the adjusted code for 2.16.0:

import numpy as np
import tensorflow as tf
input = tf.constant(1.1234, dtype='float32')
out = tf.keras.layers.PReLU(alpha_initializer=tf.keras.initializers.Constant(np.inf))(input)
print(out)

from tensorflow.

Venkat6871 avatar Venkat6871 commented on April 28, 2024

Hi @maybeLee ,

I tried to run your code on colab using tf 2.15, 2.16 and tf-nightly versions faced same issue. Please find the gist here for reference. We need to work on it, In few days i will provide a solution for it.

Thank you!

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.