Flowchain - Method Chaining for TensorFlow
Project description
Flowchain - Method Chaining for TensorFlow
Extensive and simple tensor method chaining for TensorFlow
Only add 2 lines of code at the top of your codes!
from flowchain import enable_tensor_chaining
enable_tensor_chaining() # this does everything for you.
This package makes following approach possible:
# before
x = tf.abs(lhs - rhs)
x = tf.reduce_sum(x, 1)
x = tf.argmin(x, output_type=tf.int32)
# after
x = (lhs - rhs).abs().reduce_sum(1).argmin(output_type=tf.int32)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flowchain-0.0.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for flowchain-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b820877ba8b22ceca64257822d3d004a0cde52601c56d9637e6729c8c1f2e67 |
|
MD5 | 96a29fb97a49cae3d5cb8d68db199ff3 |
|
BLAKE2b-256 | a1c7e4f3b22d3bf6daf50a64d965790acecd783fc12a4322d88c8e355ae594df |