put and get on 4d tensor