File size: 5,521 Bytes
88564ad | 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 | {
"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"
}
]
}
|