func_x
The function execution to the input data.
It applies the list of functions to the input vector and returns the calculation results.
This method will be extensively called for handeling the data processing functions in the expansion functions, RPN head and remainder functions in tinyBIG.
- preprocess_functions in expansion functions
- postprocess_functions in expansion functions
- output_process_functions in rpn heads
- activation_functions in remainder functions
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
The input data vector. |
required | |
functions |
The functions to be applied to the input vector. The function can be callable functions, string names of the functions, the complete class descriptions of the functions, etc. |
required | |
device |
str
|
The device to perform the function on the input vector. |
'cpu'
|
Returns:
Type | Description |
---|---|
Tensor
|
The processed input vector by these functions. |