torch.operator¶
torch_sym_min¶
Original source code:
# mypy: allow-untyped-defs
import torch
class TorchSymMin(torch.nn.Module):
"""
torch.sym_min operator is not supported in export.
"""
def forward(self, x):
return x.sum() + torch.sym_min(x.size(0), 100)
Result:
Unsupported: torch.* op returned non-Tensor int call_function <function sym_min at 0x7f0b55cdcb80>