Comments (3)
Looking further at the examples, I think perhaps I should just be using tf.placeholder
s instead of an InputLayer
anyway? But then I still get this error if I do, e.g.,
import tensorflow as tf
import tensorflow_probability as tfp
inputs = tf.placeholder(tf.float32, shape=(None, 10, 10))
layer = tfp.layers.Convolution1DFlipout(32, kernel_size=3, activation='relu')
model = tf.keras.Sequential()
model.add(input_layer)
model.add(layer)
output = model(inputs)
from probability.
Hi! I believe activation needs to be a callable. In this case, you should pass in tf.nn.relu.
from probability.
Yes, it requires a callable. Looking at tf.keras.layers.Dense
's implementation, strings should definitely be supported.
Contributions are welcome; the change is as easy as tf.keras.layers.Dense's version.
re:input layer. You can still use it.
from probability.
Related Issues (20)
- Dirichlet distribution sampling issue when jit_compile=True HOT 1
- AttributeError: 'SymbolicTensor' object has no attribute 'log_prob' when exporting train signature with `IndependentNormal` layer HOT 1
- Add Poisson quantile
- Computing log_prob for tfd.Sample() with a different number of samples
- TruncatedCauchy gives wrong results sometimes
- `_parameter_properties` is not implemented for `LinearGaussianStateSpaceModel`
- tensorflow 2.16.1 breaks tensorflow-probability with Keras `3.0` API HOT 3
- `LinearGaussianStateSpaceModel` filtering initial state is incorrect
- Piecewise distribution
- Keras not accepting character `/` from build_factored_surrogate_posterior HOT 4
- A bug in Linear_Mixed_Effects_Models.ipynb
- Conditional input with multiple flows HOT 1
- mlx backend HOT 1
- Can't jit PoissonLogNormalQuadratureCompound log_prob
- autobnn error HOT 2
- Addition of "location" type parameter in the Gamma distribution HOT 2
- Unexpected Symbolic tensor in Tensorflow Probability tensor_coercible object (mixture layer)
- TFP JAX: The transition kernel drastically decreases speed.
- jax.dtypes.prng_key gives `AttributeError: module 'jax.dtypes' has no attribute 'prng_key'` HOT 1
- MultivariateNormalTriL Layer appears to be incompatible with tf.keras in tf 2.16.1 and tfp 0.24 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probability.