backend_utils
add_compute_function(name, np_function, th_function)
Adds a custom compute function defined by @name
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
name of the function to add |
required |
np_function
|
callable
|
numpy version of the function |
required |
th_function
|
callable
|
torch version of the function |
required |