File size: 7,518 Bytes
6077218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
[
  {
    "function_name": "GlobalDiscriminator.__init__",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "super().__init__",
        "functionality": "Initializes the parent class (nn.Module).",
        "input": "",
        "output": "",
        "location_or_namespace": "torch.nn.Module"
      },
      {
        "function_call_name": "nn.Linear",
        "functionality": "Applies a linear transformation to the incoming data.",
        "input": "in_features, out_features, bias=True",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn"
      }
    ]
  },
  {
    "function_name": "GlobalDiscriminator.forward",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "Variable",
        "functionality": "Wraps a Tensor. This is an older PyTorch API, replaced by Tensor itself for autograd.",
        "input": "data, requires_grad=False, volatile=False",
        "output": "torch.autograd.Variable",
        "location_or_namespace": "torch.autograd"
      },
      {
        "function_call_name": "data['adj'].float",
        "functionality": "Casts the 'adj' tensor in the data dictionary to float type.",
        "input": "",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.Tensor"
      },
      {
        "function_call_name": "tensor.cuda",
        "functionality": "Moves the tensor to CUDA memory.",
        "input": "device=None, non_blocking=False, memory_format=torch.preserve_format",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.Tensor"
      },
      {
        "function_call_name": "data['num_nodes'].int",
        "functionality": "Casts the 'num_nodes' tensor in the data dictionary to int type.",
        "input": "",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.Tensor"
      },
      {
        "function_call_name": "tensor.numpy",
        "functionality": "Converts a PyTorch Tensor to a NumPy ndarray.",
        "input": "",
        "output": "numpy.ndarray",
        "location_or_namespace": "torch.Tensor"
      },
      {
        "function_call_name": "self.encoder",
        "functionality": "",
        "input": "M, adj, batch_num_nodes",
        "output": "Tuple (M_encoded, _)",
        "location_or_namespace": "unsupervised_TU"
      },
      {
        "function_call_name": "torch.cat",
        "functionality": "Concatenates the given sequence of seq tensors in the given dimension.",
        "input": "tensors, dim=0, *, out=None",
        "output": "torch.Tensor",
        "location_or_namespace": "torch"
      },
      {
        "function_call_name": "F.relu",
        "functionality": "Applies the rectified linear unit function element-wise.",
        "input": "input, inplace=False",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.functional"
      },
      {
        "function_call_name": "self.l0",
        "functionality": "Applies the initialized linear layer 'l0'.",
        "input": "h (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      },
      {
        "function_call_name": "self.l1",
        "functionality": "Applies the initialized linear layer 'l1'.",
        "input": "h (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      },
      {
        "function_call_name": "self.l2",
        "functionality": "Applies the initialized linear layer 'l2'.",
        "input": "h (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      }
    ]
  },
  {
    "function_name": "PriorDiscriminator.__init__",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "super().__init__",
        "functionality": "Initializes the parent class (nn.Module).",
        "input": "",
        "output": "",
        "location_or_namespace": "torch.nn.Module"
      },
      {
        "function_call_name": "nn.Linear",
        "functionality": "Applies a linear transformation to the incoming data.",
        "input": "in_features, out_features, bias=True",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn"
      }
    ]
  },
  {
    "function_name": "PriorDiscriminator.forward",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "F.relu",
        "functionality": "Applies the rectified linear unit function element-wise.",
        "input": "input, inplace=False",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.functional"
      },
      {
        "function_call_name": "self.l0",
        "functionality": "Applies the initialized linear layer 'l0'.",
        "input": "x (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      },
      {
        "function_call_name": "self.l1",
        "functionality": "Applies the initialized linear layer 'l1'.",
        "input": "h (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      },
      {
        "function_call_name": "torch.sigmoid",
        "functionality": "Applies the element-wise function sigmoid.",
        "input": "input, *, out=None",
        "output": "torch.Tensor",
        "location_or_namespace": "torch"
      },
      {
        "function_call_name": "self.l2",
        "functionality": "Applies the initialized linear layer 'l2'.",
        "input": "h (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      }
    ]
  },
  {
    "function_name": "FF.__init__",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "super().__init__",
        "functionality": "Initializes the parent class (nn.Module).",
        "input": "",
        "output": "",
        "location_or_namespace": "torch.nn.Module"
      },
      {
        "function_call_name": "nn.Sequential",
        "functionality": "A sequential container. Modules will be added to it in the order they are passed in the constructor.",
        "input": "*args",
        "output": "torch.nn.Sequential",
        "location_or_namespace": "torch.nn"
      },
      {
        "function_call_name": "nn.Linear",
        "functionality": "Applies a linear transformation to the incoming data.",
        "input": "in_features, out_features, bias=True",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn"
      },
      {
        "function_call_name": "nn.ReLU",
        "functionality": "Applies the rectified linear unit function element-wise.",
        "input": "inplace=False",
        "output": "torch.nn.ReLU",
        "location_or_namespace": "torch.nn"
      }
    ]
  },
  {
    "function_name": "FF.forward",
    "file_path": "unsupervised_TU",
    "function_calls": [
      {
        "function_call_name": "self.block",
        "functionality": "Passes the input through the nn.Sequential container 'block'.",
        "input": "x (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Sequential"
      },
      {
        "function_call_name": "self.linear_shortcut",
        "functionality": "Applies the initialized linear layer 'linear_shortcut'.",
        "input": "x (tensor)",
        "output": "torch.Tensor",
        "location_or_namespace": "torch.nn.Linear"
      }
    ]
  }
]