示例#1
0
 def wrapped(*args, **kwargs):
   return harvest.plant(
       f, tag=RANDOM_VARIABLE)(observations, *args, **kwargs)
示例#2
0
 def apply_f(variables, *args, **kwargs):
   return harvest.plant(
       f_, tag=module.VARIABLE)(variables, random.PRNGKey(0), *args,
                                **kwargs)
示例#3
0
 def program(key, *args, **kwargs):
   return harvest.plant(
       f,
       tag=RANDOM_VARIABLE,
       blocklist=names)({}, key, *args, **kwargs)