<s> import numpy as np <EOL> import numpy . random as npr <EOL> import kayak <EOL> from . import * <EOL> def test_identity ( ) : <EOL> npr . seed ( <NUM_LIT:1> ) <EOL> np_A = npr . randn ( <NUM_LIT:6> , <NUM_LIT:7> ) <EOL> A = kayak . Parameter ( np_A ) <EOL> B = kayak . Identity ( A ) <EOL> assert np . all ( close_float ( B . value , np_A ) ) <EOL> assert np . all ( close_float ( B . grad ( A ) , np . ones ( ( <NUM_LIT:6> , <NUM_LIT:7> ) ) ) ) </s>
