RECODE-H / annotations /annotation_42 /function_info.json
mcy98's picture
Upload folder using huggingface_hub
6077218 verified
Raw History Blame Contribute Delete
7.52 kB
[
{
"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"
}
]
}
]