//clika-runtime/io.clika.runtime/Sequential
Sequential
[jvm]
class Sequential(modules: Module) : Module, AutoCloseable
Runs its modules in order, releasing every intermediate tensor it produced (the caller's input and the returned output are untouched).
close closes every child module that is AutoCloseable; the container takes ownership of the modules passed to it.
Constructors
| Sequential | [jvm] constructor(vararg modules: Module) |
Functions
| Name | Summary |
|---|---|
| close | [jvm] open override fun close() |
| forward | [jvm] open override fun forward(input: Tensor): Tensor Run the module. Non-consuming: input stays valid. |
| invoke | [jvm] open operator fun invoke(input: Tensor): Tensor module(x): the call spelling of forward. |