# Consumers() in TensorFlow.jl

**URL:** <https://discourse.julialang.org/t/consumers-in-tensorflow-jl/5221>\
**Category:** Machine Learning\
**Created:** [August 4, 2017, 10:44am UTC](https://discourse.julialang.org/t/consumers-in-tensorflow-jl/5221 "2017-08-04T10:44:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomas\_Pevny](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas_pevny/32/25466_2.png) [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Post date:** [August 4, 2017, 10:44am UTC](https://discourse.julialang.org/t/consumers-in-tensorflow-jl/5221/1 "2017-08-04T10:44:07Z")

</div>

I would like to implement this method in TensorFlow.jl  
[https://github.com/ProbabilisticNumerics/cabs](https://github.com/ProbabilisticNumerics/cabs)  
which should automatically adjust the size of the minibatch in SGD. I am curious about the method, since in security the signals are typically very weak and therefore I would expect that large batch sizes would be needed. Looking at the source code  
[https://github.com/ProbabilisticNumerics/cabs/blob/master/gradient\_moment.py](https://github.com/ProbabilisticNumerics/cabs/blob/master/gradient_moment.py)  
it seems like they need to identify consumers of a tensor (line 79 of gradient\_moment.py).  
I wonder if it is possible to do so in?

Thanks for help.  
Tomas
