Re: question on trax

2021-08-18 Thread Greg Ewing
On 19/08/21 3:59 am, joseph pareti wrote: Another question is on this line: z = add((x, y)) If I code: z = add(x, y) Then the following exception occurs : *Expected input to be a tuple or list; instead got .* What exactly is your question? Does add((x, y)) not do what you want? If not, you'll

Re: question on trax

2021-08-18 Thread Dennis Lee Bieber
On Tue, 17 Aug 2021 17:50:59 +0200, joseph pareti declaimed the following: >In the following code, where does tl.Fn come from? i see it nowhere in the >documents, i.e I was looking for trax.layers.Fn : "layers" imports a whole slew of sub modules using from xxx import * i

Re: question on trax

2021-08-18 Thread joseph pareti
yes, but I do not see Fn anywhere. Another question is on this line: z = add((x, y)) If I code: z = add(x, y) Then the following exception occurs : *Expected input to be a tuple or list; instead got .* Am Di., 17. Aug. 2021 um 19:21 Uhr schrieb MRAB : > On 2021-08-17 16:50, joseph pareti wrote

Re: question on trax

2021-08-17 Thread MRAB
On 2021-08-17 16:50, joseph pareti wrote: In the following code, where does tl.Fn come from? i see it nowhere in the documents, i.e I was looking for trax.layers.Fn : import numpy as np *from trax import layers as tl* from trax import shapes from trax import fastmath # def Addition(): layer