File size: 811 Bytes
835424e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""

ENGINE

=====



Neural Network NN or (nn) engine, tensor calc neural network



Engine NN

====

"""

class nn():
    
    def nnp(self, x, y, z, n_layer):
        #---------------------

        x = x
        y = y
        z = z
        n_layer = n_layer

        #-----------------------

        if x == 0:
            x = 1
        else:
            pass

        if y == 0:
            y = 1
        else:
            pass

        if z == 0:
            z = 1
        else:
            pass

        if n_layer == 0:
            print('L_ERR, Set To 1')
            n_layer = 1
        else:
            pass

        #----------------------

        dim = x*y*z
        g_layer = dim*n_layer

        #----------------------

        return g_layer