Tensorflowがアップグレートされました。
tensorflow r1.1
install
pip3 install --upgrade tensorflow
install
pip3 install --upgrade tensorflow-gpu
- Seq2seq Library (contrib)
https://www.tensorflow.org/api_guides/python/contrib.seq2seq
Major Features and Improvements
- Added
tf.layers.conv3d_transpose
layer for spatio temporal deconvolution. - Added
tf.Session.make_callable()
, which provides a lower overhead means of running a similar step multiple times. - Added ibverbs-based RDMA support to contrib (courtesy @junshi15 from Yahoo).
-
RNNCell
objects now subclasstf.layers._Layer
. The strictness described
in the TensorFlow 1.1 release is gone: The first time an RNNCell is used,
it caches its scope. All future uses of the RNNCell will reuse variables from
that same scope. This is a breaking change from the behavior of RNNCells
in TensorFlow versions <= 1.0.1. TensorFlow 1.1 had checks in place to
ensure old code works correctly with the new semantics; this version
allows more flexible uses of RNNCell but can lead to subtle errors if
using code meant for TensorFlow <= 1.0.1. For example, writing:
MultiRNNCell([lstm] * 5)
will now build a 5-layer LSTM stack where each
layer shares the same parameters. To get 5 layers each with their own
parameters, write:MultiRNNCell([LSTMCell(...) for _ in range(5)])
.
If at all unsure, first test your code with TF 1.1; ensure it raises no
errors, and then upgrade to TF 1.2.
Release 1.1.0
Major Features and Improvements
- Added Java API support for Windows.
- Added
tf.spectral
module. Moved existing FFT ops totf.spectral
while
keeping an alias in the old location (tf.*
). - Added 1D, 2D and 3D Fourier transform ops for real signals to
tf.spectral
. - Added a
tf.bincount
function. - Added Keras 2 API to contrib.
- Added a new lightweight queue-like object -
RecordInput
. - Added
tf.contrib.image.compose_transforms
function. - Bring
tf.estimator.*
into the API. Non-deprecated functionality fromtf.contrib.learn.Estimator
is moved totf.estimator.Estimator
with cosmetic changes. - Docker images: TF images on gcr.io and Docker Hub are upgraded to ubuntu:16.04.
- Added the following features to TensorFlow Debugger (tfdbg):
- Ability to inspect Python source file against TF ops and tensors (command
print_source
/ps
) - New navigation bar in Curses-based UI
- NodeStepper (command
invoke_stepper
) now uses intermediate tensor dumps. It also usesTensorHandles
as direct feeds during successivecont
calls for improved performance and reduced memory consumption.
- Ability to inspect Python source file against TF ops and tensors (command
- Initial release of installation guides for Java, C, and Go.
- Added Text Dashboard to TensorBoard.
Deprecations
- TensorFlow 1.1.0 will be the last time we release a binary with Mac GPU support. Going forward, we will stop testing on Mac GPU systems. We continue to welcome patches that maintain Mac GPU support, and we will try to keep the Mac GPU build working.
Changes to contrib APIs
- The behavior of RNNCells is now stricter due to the transition towards making RNNCells act more like Keras layers.
- If an RNNCell is used twice in two different variable scopes, an error is raised describing how to avoid this behavior.
- If an RNNCell is used in a variable scope with existing conflicting variables, an error is raised showing that the RNNCell must be constructed with argument
reuse=True
.
- Deprecated contrib/distributions
pmf
,pdf
,log_pmf
,log_pdf
. - Moved
bayesflow.special_math
to distributions. -
tf.contrib.tensor_forest.python.tensor_forest.RandomForestDeviceAssigner
removed. - Changed some MVN classes and parameters:
-
tf.contrib.distributions.MultivariateNormalFull
replaced bytf.contrib.distributions.MultivariateNormalTriL
. -
tf.contrib.distributions.MultivariateNormalCholesky
replaced bytf.contrib.distributions.MultivariateNormalTriL
-
tf.contrib.distributions.MultivariateNormalDiagWithSoftplusStDev
replaced
bytf.contrib.distributions.MultivariateNormalDiagWithSoftplusScale
-
tf.contrib.distributions.MultivariateNormalDiag
arguments changed frommu
,diag_stddev
tolog
,scale_diag
. -
tf.contrib.distributions.MultivariateNormalDiagPlusVDVT
removed. -
tf.contrib.distributions.MultivariateNormalDiagPlusLowRank
added.
-
Bug Fixes and Other Changes
- Java: Support for loading models exported using the SavedModel API (courtesy @EronWright).
- Go: Added support for incremental graph execution.
- Fix a bug in the WALS solver when single-threaded.
- Added support for integer sparse feature values in
tf.contrib.layers.sparse_column_with_keys
. - Fixed
tf.set_random_seed(0)
to be deterministic for all ops. - Stability improvements for the GCS file system support.
- Improved TensorForest performance.
- Added support for multiple filename globs in
tf.matching_files
. -
LogMessage
now includes a timestamp as beginning of a message. - Added MultiBox person detector example standalone binary.
- Android demo: Makefile build functionality added to build.gradle to fully support building TensorFlow demo in Android on Windows.
- Android demo: read MultiBox priors from txt file rather than protobuf.
- Added colocation constraints to
StagingArea
. -
sparse_matmul_op
reenabled for Android builds. - Restrict weights rank to be the same as the broadcast target, to avoid ambiguity on broadcast rules.
- Upgraded libxsmm to 1.7.1 and applied other changes for performance and memory usage.
- Fixed bfloat16 integration of LIBXSMM sparse mat-mul.
- Improved performance and reduce memory usage by allowing ops to forward input buffers to output buffers and perform computations in-place.
- Improved the performance of CPU assignment for strings.
- Speed up matrix * vector multiplication and matrix * matrix with unknown shapes.
- C API: Graph imports now support input remapping, control dependencies, and returning imported nodes (see
TF_GraphImportGraphDefWithReturnOutputs()
) - Multiple C++ API updates.
- Multiple TensorBoard updates including:
- Users can now view image summaries at various sampled steps (instead of just the last step).
- Bugs involving switching runs as well as the image dashboard are fixed.
- Removed data download links from TensorBoard.
- TensorBoard uses a relative data directory, for easier embedding.
- TensorBoard automatically ignores outliers for domain calculation, and formats proportional values consistently.
- Multiple tfdbg bug fixes:
- Fixed Windows compatibility issues.
- Command history now persists across runs.
- Bug fix in graph validation related to
tf.while_loops
.
- Java Maven fixes for bugs with Windows installation.
- Backport fixes and improvements from external keras.
- Keras config file handling fix.
References