crypten/nn/module.py [971:980]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    SUPPORTS_PLAINTEXT_INPUTS = True

    def __init__(self, value):
        super().__init__()
        if not torch.is_tensor(value):
            value = torch.tensor(value)
        assert torch.is_tensor(
            value
        ), f"value must be PyTorch tensor, not {type(value)}"
        self.value = value.to(dtype=torch.float)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



crypten/nn/module.py [1002:1011]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    SUPPORTS_PLAINTEXT_INPUTS = True

    def __init__(self, value):
        super().__init__()
        if not torch.is_tensor(value):
            value = torch.tensor(value)
        assert torch.is_tensor(
            value
        ), f"value must be PyTorch tensor, not {type(value)}"
        self.value = value.to(dtype=torch.float)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



