Skip to content

Commit 1cd0bde

Browse files
theogfwilltebbutt
andauthored
Update docs/src/create_kernel.md
Co-authored-by: willtebbutt <[email protected]>
1 parent faec4ea commit 1cd0bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/create_kernel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ Finally there are additional functions you can define to bring in more features:
3737
These parameters will be passed to the `Flux.params` function. For some examples see the `trainable.jl` file in `src/`
3838
- `KernelFunctions.iskroncompatible(k::MyKernel)`: if your kernel factorizes in dimensions, you can declare your kernel as `iskroncompatible(k) = true` to use Kronecker methods.
3939
- `KernelFunctions.dim(x::MyDataType)`: by default the dimension of the inputs will only be checked for vectors of type `AbstractVector{<:Real}`. If you want to check the dimensionality of your inputs, dispatch the `dim` function on your datatype. Note that `0` is the default.
40-
- You can also directly overload `KernelFunctions.validate_inputs(x::MyDataType, y::MyDataType)` if you want to run special checks for your input types.
40+
- `dim` is called within `KernelFunctions.validate_inputs(x::MyDataType, y::MyDataType)`, which can instead be directly overloaded if you want to run special checks for your input types.
4141
- `kernelmatrix(k::MyKernel, ...)`: you can redefine the diverse `kernelmatrix` functions to eventually optimize the computations.
4242
- `Base.print(io::IO, k::MyKernel)`: if you want to specialize the printing of your kernel

0 commit comments

Comments
 (0)