Package org.jetbrains.kotlinx.dl.api.core

Types

Functional
Link copied to clipboard
class Functional(layers: Layer) : GraphTrainableModel

A Functional model is defined as a directed graph of layers.

GraphTrainableModel
Link copied to clipboard
abstract class GraphTrainableModel(layers: Layer) : TrainableModel

GraphTrainableModel model groups a linear stack of layers into a graph-based TensorFlow Model. Also, it provides training and inference features on this model.

KGraph
Link copied to clipboard
class KGraph(graphDef: ByteArray, prefix: String) : AutoCloseable

A wrapper object to extend functionality and behaviour of static TensorFlow graph.

SavingFormat
Link copied to clipboard
enum SavingFormat : Enum<SavingFormat>

Model saving format.

Sequential
Link copied to clipboard
class Sequential(layers: Layer) : GraphTrainableModel

Sequential model groups a linear stack of layers into a TensorFlow Model. Also, it provides training and inference features on this model.

TrainableModel
Link copied to clipboard
abstract class TrainableModel : TensorFlowInferenceModel, ModelWithSummary

Base abstract class for all trainable models.

WritingMode
Link copied to clipboard
enum WritingMode : Enum<WritingMode>

Model writing mode.

Functions

freeze
Link copied to clipboard
fun GraphTrainableModel.freeze()

Freezes weights in all layers in this model, so they won't be changed during training.