
org.diffkt.model.TrainableLayer.kt Maven / Gradle / Ivy
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package org.diffkt.model
interface TrainableLayer> : TrainableComponent, Layer {
override fun cpu(): T = withTrainables(trainables.map { it.cpu() })
override fun gpu(): T = withTrainables(trainables.map { it.gpu() })
}
interface TrainableLayerSingleInput> : TrainableLayer, TrainableComponent, LayerSingleInput
© 2015 - 2025 Weber Informatics LLC | Privacy Policy