ch_ops.py: allow "dot" to work with tensors