RECODE-H / annotations /annotation_14 /function_info.json
mcy98's picture
Upload folder using huggingface_hub
88564ad verified
Raw History Blame Contribute Delete
5.52 kB
{
"function_name": "generate",
"file_path": "UADF/generate_uadf.py",
"function_calls": [
{
"function_call_name": "size",
"functionality": "Returns the size of the tensor along a given dimension.",
"input": "dim (int, implicitly 0)",
"output": "int",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "min",
"functionality": "Returns the smallest item from two or more arguments.",
"input": "value1 (int), value2 (int)",
"output": "int",
"location_or_namespace": "builtins"
},
{
"function_call_name": "empty",
"functionality": "Returns a tensor filled with uninitialized data.",
"input": "size (int), dtype (torch.dtype), device (torch.device)",
"output": "torch.Tensor",
"location_or_namespace": "torch"
},
{
"function_call_name": "arange",
"functionality": "Returns a 1-D tensor of size (end - start) / step with values from start to end with step size.",
"input": "start (int), end (int), device (torch.device)",
"output": "torch.Tensor",
"location_or_namespace": "torch"
},
{
"function_call_name": "tensor",
"functionality": "Constructs a tensor.",
"input": "data (list), dtype (torch.dtype), device (torch.device)",
"output": "torch.Tensor",
"location_or_namespace": "torch"
},
{
"function_call_name": "Sigmoid",
"functionality": "Creates a Sigmoid activation function module.",
"input": "None",
"output": "torch.nn.modules.activation.Sigmoid",
"location_or_namespace": "torch.nn"
},
{
"function_call_name": "asr_inference",
"functionality": "Performs ASR inference, taking previous tokens and acoustic embeddings to predict the next token's logits.",
"input": "decoder_input (torch.Tensor), asr_emb (acoustic representations)",
"output": "tuple (logits: torch.Tensor, _: unknown)",
"location_or_namespace": "ASR_model (conceptual, passed as argument)"
},
{
"function_call_name": "softmax",
"functionality": "Applies the softmax function to an n-dimensional input Tensor.",
"input": "input (torch.Tensor), dim (int)",
"output": "torch.Tensor (probabilities)",
"location_or_namespace": "torch.nn.functional"
},
{
"function_call_name": "index_select",
"functionality": "Returns a new tensor which selects data from the input tensor along a dimension given by index.",
"input": "dim (int), index (torch.Tensor)",
"output": "torch.Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "view",
"functionality": "Returns a new tensor with the same data as the self tensor but with a different shape.",
"input": "shape (tuple of int)",
"output": "torch.Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "model",
"functionality": "Performs LLM inference, taking a sequence of tokens and returning logits for the next token.",
"input": "input_tensor (torch.Tensor), max_seq_length (int), input_pos (torch.Tensor)",
"output": "torch.Tensor (logits)",
"location_or_namespace": "LLaMA_model (conceptual, passed as argument)"
},
{
"function_call_name": "dot",
"functionality": "Computes the dot product of two tensors.",
"input": "tensor1 (torch.Tensor), tensor2 (torch.Tensor)",
"output": "torch.Tensor (scalar)",
"location_or_namespace": "torch"
},
{
"function_call_name": "log",
"functionality": "Returns a new tensor with the natural logarithm of the elements of input.",
"input": "input (torch.Tensor)",
"output": "torch.Tensor",
"location_or_namespace": "torch"
},
{
"function_call_name": "__call__",
"functionality": "Applies the sigmoid activation function.",
"input": "input (torch.Tensor)",
"output": "torch.Tensor",
"location_or_namespace": "torch.nn.modules.activation.Sigmoid"
},
{
"function_call_name": "max",
"functionality": "Returns the maximum value of all elements in the input tensor.",
"input": "input (torch.Tensor), dim (int)",
"output": "tuple (max_values: torch.Tensor, indices: torch.Tensor)",
"location_or_namespace": "torch"
},
{
"function_call_name": "to",
"functionality": "Performs Tensor dtype and/or device conversion.",
"input": "dtype (torch.dtype) or device (torch.device)",
"output": "torch.Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "cat",
"functionality": "Concatenates a sequence of tensors along a given dimension.",
"input": "tensors (tuple of torch.Tensor), dim (int)",
"output": "torch.Tensor",
"location_or_namespace": "torch"
},
{
"function_call_name": "unsqueeze",
"functionality": "Returns a new tensor with a dimension of size one inserted at the specified position.",
"input": "dim (int)",
"output": "torch.Tensor",
"location_or_namespace": "torch.Tensor"
},
{
"function_call_name": "index_copy",
"functionality": "Copies elements from source into self tensor at positions specified by index.",
"input": "dim (int), index (torch.Tensor), source (torch.Tensor)",
"output": "torch.Tensor (modified tensor)",
"location_or_namespace": "torch.Tensor"
}
]
}