Change ReinitializeTensor to use C10_LOG_FIRST_N (#18531)
authorJerry Zhang <jerryzh@fb.com>
Wed, 3 Apr 2019 03:54:28 +0000 (20:54 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 3 Apr 2019 04:03:37 +0000 (21:03 -0700)
commit40a54bf2f1b76f844b28c2fc084e0f58d6ebbc90
tree8c4ec99d3e7ce9bf6aed9cc488cb63b6db756c3a
parent80404cb2f516ff16cefbbf9270b2003a6213b29d
Change ReinitializeTensor to use C10_LOG_FIRST_N (#18531)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18531

Currently we use C10_LOG_EVERY_MS to log the data type change, but it pollutes the log of some service,
we would like to change it to C10_LOG_FIRST_N to prevent that.

Reviewed By: dzhulgakov

Differential Revision: D14647704

fbshipit-source-id: b84e4002bd4aa94d616133cd1049c3d4ab05386e
c10/util/Logging.h
caffe2/core/tensor.cc