Caffe2 - C++ API
A deep learning, cross platform ML framework
int8_sigmoid_op.cc
1 #include "caffe2/operators/quantized/int8_sigmoid_op.h"
2 
3 namespace caffe2 {
4 REGISTER_CPU_OPERATOR(Int8Sigmoid, int8::Int8SigmoidOp);
5 
6 OPERATOR_SCHEMA(Int8Sigmoid)
7  .NumInputs(1)
8  .NumOutputs(1)
9  .Arg("Y_scale", "Output tensor quantization scale")
10  .Arg("Y_zero_point", "Output tensor quantization offset")
11  .IdenticalTypeAndShape()
12  .SetDoc(R"DOC(
13 Apply the Sigmoid function element-wise to the input tensor. This is often used
14 as a non-linear activation function in a neural network. The sigmoid function is
15 defined as:
16 
17 $$Sigmoid(x) = \frac{1}{1+\exp(-x)}$$
18 
19 Github Links:
20 
21 - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/sigmoid_op.cc
22 )DOC")
23  .Input(
24  0,
25  "input",
26  "The input tensor that's coerced into a 2D matrix of size (NxD) "
27  "as described above.")
28  .Output(
29  0,
30  "output",
31  "The sigmoid normalized output values with the same "
32  "shape as input tensor.");
33 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13