It transforms a vector in the continuous range [0, 1]. It's also called logistic function.
A sigmoid activation may be used within a Dense Keras Layer:
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Model
input_layer = # Previous layer
logits = Dense(
units=32,
activation='sigmoid'
)(input_layer)
model = Model(inputs=input_layer, outputs=logits)
It provides support to the operation by computing sigmod of x element-wise.
import tensorflow as tf
tf.math.sigmoid(
x, # A tensor of "floating type"
name=None # Optional
)