add set_subtensor() and alloc() to the list of ways of creating a tensor