define tensornetwork