    def set_all_random_constants(self, dtype="float16"):
        """
        This function would set all constants into random value.
        """
        const_infos = self.get_constants()
        for k, v in const_infos.items():
            getattr(self, k)._bind_data(
                _TorchConstantTensorData(get_random_torch_tensor(v, dtype))
            )
This function would set all constants into random value.
python/aitemplate/utils/serialization/ait_program.py