未验证 提交 f925d1dc 编写于 作者: W Wen Sun 提交者: GitHub

fix(distributed/communication/stream): fix cannot import in python 3.6 (#46308)

上级 9ce31e96
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle.distributed.collective as collective
import paddle.fluid.framework as framework
from paddle.distributed import collective
def _all_reduce_in_dygraph(tensor, op, group, sync_op, use_calc_stream):
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle.distributed.collective as collective
import paddle.fluid.framework as framework
from paddle.distributed import collective
def _recv_in_dygraph(tensor, src, group, sync_op, use_calc_stream):
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import paddle.distributed.collective as collective
import paddle.fluid.framework as framework
from paddle.distributed import collective
def _send_in_dygraph(tensor, dst, group, sync_op, use_calc_stream):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册