def _initFetch(self, x, tftype, use_gpu=None):
    with self.test_session(use_gpu=use_gpu):
        p = state_ops.variable_op(x.shape, tftype)
        op = state_ops.assign(p, x)
        op.op.run()
        return p.eval()
def _initFetch(self, x, tftype, use_gpu=None):
    with self.test_session(use_gpu=use_gpu):
        p = state_ops.variable_op(x.shape, tftype)
        op = state_ops.assign(p, x)
        op.op.run()
        return p.eval()