Files
pytorch/test/expect/TestJit.test_non_ascii_string.expect
Zino Benaissa 690946c49d Generalize constant_table from tensor only to ivalue (#40718)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40718

Currently only constant except tensor must be inlined during serialization.
Tensor are stored in the contant table. This patch generalizes this capability
to any IValue. This is particularly useful for non ASCII string literal that
cannot be inlined.

Test Plan: Imported from OSS

Differential Revision: D22298169

Pulled By: bzinodev

fbshipit-source-id: 88cc59af9cc45e426ca8002175593b9e431f4bac
2020-07-09 09:09:40 -07:00

5 lines
97 B
Plaintext

def forward(self,
x: Tensor,
y: Tensor) -> str:
return torch.add(self.a, CONSTANTS.c0)