Translator with two NDLists for processInput #821
Replies: 2 comments 4 replies
-
Bilinear looks like it require two NDArrays, not NDLists. The NDArrays are the N-dimensional arrays that would be of shapes Then, the NDList is used to store a tuple of NDArrays or a list of NDArrays. In this case, you need a tuple of two NDArrays so you would just give |
Beta Was this translation helpful? Give feedback.
-
Hi, I followed your suggestions for Bilinear for this model (please see below). Python: Generate traced modelvoc = Vocabulary(init_from_file="Voc") Restore traced modelmodel = torch.jit.load(‘./model-traced.zip') Java: Restore traced modelPath modelDir = Paths.get("./"); NDManager manager = NDManager.newBaseManager(); Translator< List , List> translator = new Translator< List , List>() { |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am wondering how to write a Translator for something like torch.nn.Bilinear
https://nn.readthedocs.io/en/readthedocs/simple/index.html#nn.Bilinear
where processInput () has to return two NDLists?
I will appreciate any help.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions