Comments (2)
It depends on the use case. Sometimes it's perfectly fine to use dynamic shapes. But some ops may need some dimensions of your tensors to be static. For example if you use tf.layers.dense, it needs to know the last dimension of your tensor so that it can allocate a variable for that. In these cases you'd want static shapes. I tend to use a custom get_shape function that prefers to return static shapes.
from effectivetensorflow.
Thanks!
from effectivetensorflow.
Related Issues (18)
- tf.name_scope & variables HOT 1
- Explain why tf.nn.softmax isn't used for entropy HOT 2
- TensorFlow data input HOT 1
- why multi gpu is slower than single gpu HOT 3
- Avoiding blocking of processes due to lack of data HOT 2
- Fix import of TFRecordDataset HOT 1
- typo? HOT 1
- how does the `get_shape` function work with placeholders? HOT 4
- Mistake in "Scopes and when to use them" HOT 1
- Detailed comments. HOT 1
- tf.AUTO_REUSE work with tf.layers.conv2d HOT 1
- Where are the trainable variables placed in the "Multi-GPU processing with data parallelism " ? HOT 1
- Multi-GPU code HOT 1
- Please add a license to this repo HOT 5
- Mistake in "broadcasting good and ugly" HOT 1
- Mistake in “Broadcasting the good and the ugly” HOT 1
- Check your gradients with tf.compute_gradient_error - softmax applied twice. HOT 1
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 effectivetensorflow.