File size: 421 Bytes
835424e
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
class extra_engine():
    def ext_engine(self, n_layer, fwd_layer, bcw_layer):
        n_layer = n_layer
        fwd_layer = fwd_layer
        bcw_layer = bcw_layer
        #------------------------
        mult = n_layer**fwd_layer
        sum_stg1 = mult+bcw_layer
        sum_stg2 = fwd_layer*bcw_layer
        fine_sum = sum_stg1+sum_stg2
        #----------------------------
        return fine_sum