Пример #1
0
 def FProp(self, theta, current_step):
     p = self.params
     return py_utils.PiecewiseConstant(current_step, p.boundaries, p.values,
                                       p.dtype)
Пример #2
0
 def Value(self):
   p = self.params
   return py_utils.PiecewiseConstant(py_utils.GetGlobalStep(), p.boundaries,
                                     p.values, p.dtype)
Пример #3
0
 def _Eval(x):
   with self.session(use_gpu=False) as sess:
     result = py_utils.PiecewiseConstant(
         x, boundaries, values, vdtype=tf.float32)
     return sess.run(result)