summaryrefslogtreecommitdiff
path: root/caffe2/operators/perplexity_op.cc
diff options
context:
space:
mode:
authorAapo Kyrola <akyrola@fb.com>2017-07-17 18:28:28 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2017-07-17 18:36:38 -0700
commit95291f0f74e2dde54982f2af12c5a666897a8542 (patch)
tree81a11fb9b52d58c2bdd35289558dfee5e2b8d1be /caffe2/operators/perplexity_op.cc
parentb6722a07cd9d5fac52e239a5d91fa131c654e14a (diff)
downloadpytorch-95291f0f74e2dde54982f2af12c5a666897a8542.tar.gz
pytorch-95291f0f74e2dde54982f2af12c5a666897a8542.tar.bz2
pytorch-95291f0f74e2dde54982f2af12c5a666897a8542.zip
Revert D5348078: Add linter for enforcing caffe operator documentation
Summary: This reverts commit c3fa22fc7ca8066d5fc8fa780b23d7867fd3380e Differential Revision: D5348078 fbshipit-source-id: f536e647cbd221b26ccbc105a5f5f8bdbcc119ab
Diffstat (limited to 'caffe2/operators/perplexity_op.cc')
-rw-r--r--caffe2/operators/perplexity_op.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/caffe2/operators/perplexity_op.cc b/caffe2/operators/perplexity_op.cc
index a7c4d52285..2d461158aa 100644
--- a/caffe2/operators/perplexity_op.cc
+++ b/caffe2/operators/perplexity_op.cc
@@ -21,6 +21,7 @@ bool PerplexityOp<float, CPUContext>::RunOnDevice() {
return true;
}
+namespace {
REGISTER_CPU_OPERATOR(Perplexity, PerplexityOp<float, CPUContext>);
OPERATOR_SCHEMA(Perplexity).NumInputs(1).NumOutputs(1)
@@ -37,4 +38,5 @@ single (float) perplexity value for the batch.
"batch");
SHOULD_NOT_DO_GRADIENT(Perplexity);
+} // namespace
} // namespace caffe2