Optional ======== Constructs an optional-type value containing either an empty optional of a certain type specified by the attribute, or a non-empty value containing the input element. **Abstract Signature:** ``Optional(input, type)`` .. raw:: html
torch.nn.functional.Optional
mlx.optimizers.Optional