Current iteration in layer

28 views
Skip to first unread message

Jan Pohanka

unread,
Mar 29, 2017, 4:12:58 AM3/29/17
to Caffe Users
Hi all.
Can I get current iteration or batch number or similar number in layer forward function? I can't find anything about it...

Evan Shelhamer

unread,
Apr 12, 2017, 2:00:50 AM4/12/17
to Jan Pohanka, Caffe Users
No, only the Solver holds the iteration number. You could either include a counter in your layer or hack Caffe to give the layer a reference to a solver, but that kind of coupling isn't encouraged.

Evan Shelhamer





On Wed, Mar 29, 2017 at 1:12 AM, Jan Pohanka <xhpo...@gmail.com> wrote:
Hi all.
Can I get current iteration or batch number or similar number in layer forward function? I can't find anything about it...

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users+unsubscribe@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/dfba03e2-7c6f-4786-9fdf-a118e74a2dc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jan Pohanka

unread,
Apr 12, 2017, 2:19:23 AM4/12/17
to Caffe Users, xhpo...@gmail.com
Thanks for response. The counter seems to be good solution. I have already taken that way...

Dne středa 12. dubna 2017 8:00:50 UTC+2 Evan Shelhamer napsal(a):
No, only the Solver holds the iteration number. You could either include a counter in your layer or hack Caffe to give the layer a reference to a solver, but that kind of coupling isn't encouraged.

Evan Shelhamer





On Wed, Mar 29, 2017 at 1:12 AM, Jan Pohanka <xhpo...@gmail.com> wrote:
Hi all.
Can I get current iteration or batch number or similar number in layer forward function? I can't find anything about it...

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages