@tensorflow/tfjs-layers
Version:
TensorFlow layers API in JavaScript
25 lines (24 loc) • 884 B
TypeScript
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
/// <amd-module name="@tensorflow/tfjs-layers/dist/keras_format/regularizer_config" />
import { BaseSerialization } from './types';
export type L1L2Config = {
l1?: number;
l2?: number;
};
export type L1L2Serialization = BaseSerialization<'L1L2', L1L2Config>;
export type RegularizerSerialization = L1L2Serialization;
export type RegularizerClassName = RegularizerSerialization['class_name'];
/**
* A string array of valid Regularizer class names.
*
* This is guaranteed to match the `RegularizerClassName` union type.
*/
export declare const regularizerClassNames: RegularizerClassName[];