Download annotations/annotation_34/function_info.json from mcy98/RECODE-H: direct link, hf CLI and curl.
- Browser
- Download file 4.37 kB
-
https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_34/function_info.json
- Command line
-
hf download hf://datasets/mcy98/RECODE-H/annotations/annotation_34/function_info.json
-
curl -L -o function_info.json https://huggingface.co/datasets/mcy98/RECODE-H/resolve/main/annotations/annotation_34/function_info.json
4.37 kB
| [ | |
| { | |
| "function_name": "ELCRecTrainer._instance_cl_one_pair_contrastive_learning", | |
| "file_path": "trainers/elcrec_trainer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "torch.cat", | |
| "functionality": "Concatenates tensors along a specified dimension.", | |
| "input": "inputs, dim=0", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "self.model", | |
| "functionality": "Encodes sequences into representations.", | |
| "input": "cl_batch", | |
| "output": "Tensor (sequence embeddings)", | |
| "location_or_namespace": "" | |
| }, | |
| { | |
| "function_call_name": "torch.matmul", | |
| "functionality": "Matrix product of two tensors.", | |
| "input": "cl_sequence_output, self.model.cluster_centers.T", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.argmin", | |
| "functionality": "Returns indices of the minimum values along a dimension.", | |
| "input": "dis, dim=-1", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.concat", | |
| "functionality": "Concatenates tensors along a specified dimension.", | |
| "input": "[cl_sequence_output, shift], dim=-1", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.mean", | |
| "functionality": "Computes the mean value of elements along a dimension.", | |
| "input": "cl_sequence_output, dim=1, keepdim=False", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.view", | |
| "functionality": "Reshapes a tensor without changing its data.", | |
| "input": "cl_sequence_output", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch.Tensor" | |
| }, | |
| { | |
| "function_call_name": "torch.split", | |
| "functionality": "Splits the tensor into chunks.", | |
| "input": "cl_sequence_flatten, batch_size_original", | |
| "output": "Tuple[Tensor, Tensor]", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "self.cf_criterion", | |
| "functionality": "", | |
| "input": "cl_output_slice[0], cl_output_slice[1], intent_ids", | |
| "output": "Tensor (contrastive loss)", | |
| "location_or_namespace": "" | |
| } | |
| ] | |
| }, | |
| { | |
| "function_name": "ELCRecTrainer.distance", | |
| "file_path": "trainers/elcrec_trainer.py", | |
| "function_calls": [ | |
| { | |
| "function_call_name": "torch.sum", | |
| "functionality": "Sum of tensor elements over given dimension.", | |
| "input": "(x * x).sum(-1), (c * c).sum(-1)", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.reshape", | |
| "functionality": "Gives a new shape to a tensor.", | |
| "input": "intermediate tensors", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.repeat", | |
| "functionality": "Repeats a tensor along specified dimensions.", | |
| "input": "reshaped tensors", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| }, | |
| { | |
| "function_call_name": "torch.matmul", | |
| "functionality": "Matrix product of two tensors.", | |
| "input": "x, c.T", | |
| "output": "Tensor", | |
| "location_or_namespace": "torch" | |
| } | |
| ] | |
| } | |
| ] | |