Iterate through (sparse) tensor1, and apply func to the elements, set function result to (sparse) tensor 2
Iterate through (sparse) tensor1, and apply func to the elements, set function result to (sparse) tensor 2
the tensor1
the result tensor
(tensor1Data, tensor1.StorageOffset, tensor2Data, tensor2.StorageOffset)