models/degrader_constant.py [35:70]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.r = torch.clamp(theta.r, 0.0, 4.0)
        self.K = torch.clamp(theta.K, 0.0, 4.0)
        self.tlag = theta.tlag
        self.rc = theta.rc
        self.a530 = theta.a530
        self.a480 = theta.a480

        self.drfp = torch.clamp(theta.drfp, 1e-12, 2.0)
        self.dyfp = torch.clamp(theta.dyfp, 1e-12, 2.0)
        self.dcfp = torch.clamp(theta.dcfp, 1e-12, 2.0)
        self.dR = torch.clamp(theta.dR, 1e-12, 5.0)
        self.dS = torch.clamp(theta.dS, 1e-12, 5.0)

        self.e76 = theta.e76
        self.e81 = theta.e81
        self.aCFP = theta.aCFP
        self.aYFP = theta.aYFP
        self.KGR_76 = theta.KGR_76
        self.KGS_76 = theta.KGS_76
        self.KGR_81 = theta.KGR_81
        self.KGS_81 = theta.KGS_81

        # Condition on device information by mapping param_cond = f(param, d; \phi) where d is one-hot rep of device
        # if condition_on_device:
        #     print('Reached here?')
        #
        #     ones = torch.tensor([1.0]).repeat([self.n_batch, self.n_iwae])
        #     self.aR = self.device_conditioner(ones, 'aR', dev_1hot)
        #     self.aS = self.device_conditioner(ones, 'aS', dev_1hot)
        # else:
        #     print('Using Condition on device information')
        #     self.aR = theta.aR
        #     self.aS = theta.aS

        self.aR = theta.aR
        self.aS = theta.aS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



models/dr_constant.py [32:55]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self.r = torch.clamp(theta.r, 0.0, 4.0)
        self.K = torch.clamp(theta.K, 0.0, 4.0)
        self.tlag = theta.tlag
        self.rc = theta.rc
        self.a530 = theta.a530
        self.a480 = theta.a480

        self.drfp = torch.clamp(theta.drfp, 1e-12, 2.0)
        self.dyfp = torch.clamp(theta.dyfp, 1e-12, 2.0)
        self.dcfp = torch.clamp(theta.dcfp, 1e-12, 2.0)
        self.dR = torch.clamp(theta.dR, 1e-12, 5.0)
        self.dS = torch.clamp(theta.dS, 1e-12, 5.0)

        self.e76 = theta.e76
        self.e81 = theta.e81
        self.aCFP = theta.aCFP
        self.aYFP = theta.aYFP
        self.KGR_76 = theta.KGR_76
        self.KGS_76 = theta.KGS_76
        self.KGR_81 = theta.KGR_81
        self.KGS_81 = theta.KGS_81

        self.aR = theta.aR
        self.aS = theta.aS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



