speed increases for some sparse tensor operations and online training