tft.scale_to_0_1_per_key

tft.scale_to_0_1_per_key(
    x,
    key,
    elementwise=False,
    name=None
)

Returns a column which is the input column scaled to have range [0,1].

Args:

  • x: A numeric Tensor.
  • key: A Tensor of type string.
  • elementwise: If true, scale each element of the tensor independently.
  • name: (Optional) A name for this operation.

Returns:

A Tensor containing the input column scaled to [0, 1], per key.