upgrade pyre version in fbcode/vision - batch 2

Differential Revision: D44182699

fbshipit-source-id: bdc5f495eaaee8ce461b91271d476d7b3ec3f8a2
This commit is contained in:
generatedunixname89002005307016 2023-03-17 18:33:54 -07:00 committed by Facebook GitHub Bot
parent 013ff4fd90
commit 8c8004853a
2 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,7 @@ def find_last_checkpoint(
# pyre-fixme[61]: `fls` is undefined, or not always defined. # pyre-fixme[61]: `fls` is undefined, or not always defined.
fl = [f[0 : -len(ext)] + ".pth" for f in fls] fl = [f[0 : -len(ext)] + ".pth" for f in fls]
else: else:
# pyre-fixme[61]: `ext` is undefined, or not always defined.
fl = fls[-1][0 : -len(ext)] + ".pth" fl = fls[-1][0 : -len(ext)] + ".pth"
return fl return fl

View File

@ -124,6 +124,7 @@ def mesh_laplacian_smoothing(meshes, method: str = "uniform"):
if method == "uniform": if method == "uniform":
loss = L.mm(verts_packed) loss = L.mm(verts_packed)
elif method == "cot": elif method == "cot":
# pyre-fixme[61]: `norm_w` is undefined, or not always defined.
loss = L.mm(verts_packed) * norm_w - verts_packed loss = L.mm(verts_packed) * norm_w - verts_packed
elif method == "cotcurv": elif method == "cotcurv":
# pyre-fixme[61]: `norm_w` may not be initialized here. # pyre-fixme[61]: `norm_w` may not be initialized here.