Skip to content

[jit] String default args get printed as ascii values #25804

@driazati

Description

@driazati

e.g. passing the wrong types to interpolate

@torch.jit.script
def bad_error(x):
    return torch.nn.functional.interpolate(x, 'bad')
  aten::__interpolate(Tensor input, int? size=None, float[]? scale_factor=None, str
 mode='\156\145\141\162\145\163\164', bool? align_corners=None) -> (Tensor):       
  Expected a value of type 'Optional[int]' for argument 'size' but instead found ty
pe 'Tensor'.                                                                       

cc @suo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions