def _refined_glimpse_sensor(self, x_t, l_p):
<EOL>l_p = l_p * <NUM_LIT> + <NUM_LIT> - <NUM_LIT:4><EOL>l_p = T.cast(T.round(l_p), "<STR_LIT>")<EOL>l_p = l_p * (l_p >= <NUM_LIT:0>)<EOL>l_p = l_p * (l_p < <NUM_LIT>) + (l_p >= <NUM_LIT>) * <NUM_LIT:20><EOL>glimpse_1 = x_t[l_p[<NUM_LIT:0>]: l_p[<NUM_LIT:0>] + <NUM_LIT:7>][:, l_p[<NUM_LIT:1>]: l_p[<NUM_LIT:1>] + <NUM_LIT:7>]<EOL>return glimpse_1<EOL>
Parameters:
    x_t - 28x28 image
    l_p - 2x1 focus vector
Returns:
    7*14 matrix