Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
/meshPublic archive

Commitbbb6ce7

Browse files
yileiMesh TensorFlow Team
authored and
Mesh TensorFlow Team
committed
Use math.gcd instead of fractions.gcd, the former is deprecated in Python 3.5 and removed in 3.9.
PiperOrigin-RevId: 424259166
1 parentead60ee commitbbb6ce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎mesh_tensorflow/auto_mtf/valid_layouts.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from __future__importdivision
2828
from __future__importprint_function
2929

30-
importfractions
30+
importmath
3131
importre
3232

3333

@@ -132,7 +132,7 @@ def _initialize_mtf_dimension_name_to_size_gcd(self, mtf_graph):
132132
formtf_operationinmtf_graph.operations:
133133
formtf_tensorinmtf_operation.outputs:
134134
formtf_dimensioninmtf_tensor.shape.dims:
135-
mtf_dimension_name_to_size_gcd[mtf_dimension.name]=fractions.gcd(
135+
mtf_dimension_name_to_size_gcd[mtf_dimension.name]=math.gcd(
136136
mtf_dimension_name_to_size_gcd.get(mtf_dimension.name,
137137
mtf_dimension.size),
138138
mtf_dimension.size)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp