Commit 409b5f5e authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Currently LayoutAssignment only deals with a module at a time and

knows nothing about other modules. Therefore, sends and recvs are
given a default layout to ensure that the layout is the same across
all communicating modules.

This CL adds a ChannelLayoutConstraints object which can be passed
into LayoutAssignment. When a send or recv is layed out, its chosen
layout is saved into the ChannelLayoutConstraints. When, later,
another instruction is seen in a different module that uses the same
communicating channel ID, the layout is constrained to be the same as
in the previous module.

PiperOrigin-RevId: 180771799
parent c00f7c44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment