Commit 639f05a1 authored by Pyre Bot Jr's avatar Pyre Bot Jr Committed by Facebook GitHub Bot
Browse files

suppress errors in `fbcode/vision` - batch 2

Differential Revision: D29301375

fbshipit-source-id: a061a2fb7c7f2fd2038e31b28a5bdf0bfe1676f6
parent 8f4ddb5a
...@@ -116,7 +116,7 @@ class TensorProperties(nn.Module): ...@@ -116,7 +116,7 @@ class TensorProperties(nn.Module):
for k, v in kwargs.items(): for k, v in kwargs.items():
if v is None or isinstance(v, (str, bool)): if v is None or isinstance(v, (str, bool)):
setattr(self, k, v) setattr(self, k, v)
elif isinstance(v, BROADCAST_TYPES): # pyre-fixme[6] elif isinstance(v, BROADCAST_TYPES):
args_to_broadcast[k] = v args_to_broadcast[k] = v
else: else:
msg = "Arg %s with type %r is not broadcastable" msg = "Arg %s with type %r is not broadcastable"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment