Constant ======== This operator produces a constant tensor. Exactly one of the provided attributes, either value, sparse_value, or value_* must be specified. **Abstract Signature:** ``Constant(sparse_value: Tensor, value: Tensor, value_float: float, value_floats: List[float], value_int: int, value_ints: List[int], value_string: str, value_strings: List[str])`` .. raw:: html

PyTorch

API: torch.nn.init.constant
Strategy: Direct Mapping

Apple MLX

API: mlx.nn.init.constant
Strategy: Direct Mapping