1 | /**
|
2 | * @license
|
3 | * Copyright 2020 Google LLC. All Rights Reserved.
|
4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | * you may not use this file except in compliance with the License.
|
6 | * You may obtain a copy of the License at
|
7 | *
|
8 | * http://www.apache.org/licenses/LICENSE-2.0
|
9 | *
|
10 | * Unless required by applicable law or agreed to in writing, software
|
11 | * distributed under the License is distributed on an "AS IS" BASIS,
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 | * See the License for the specific language governing permissions and
|
14 | * limitations under the License.
|
15 | * =============================================================================
|
16 | */
|
17 | /// <amd-module name="@tensorflow/tfjs-core/dist/ops/basic_lstm_cell" />
|
18 | import { Scalar, Tensor1D, Tensor2D } from '../tensor';
|
19 | import { TensorLike } from '../types';
|
20 | /**
|
21 | * Computes the next state and output of a BasicLSTMCell.
|
22 | *
|
23 | * Returns `[newC, newH]`.
|
24 | *
|
25 | * Derived from tf.contrib.rnn.BasicLSTMCell.
|
26 | *
|
27 | * @param forgetBias Forget bias for the cell.
|
28 | * @param lstmKernel The weights for the cell.
|
29 | * @param lstmBias The bias for the cell.
|
30 | * @param data The input to the cell.
|
31 | * @param c Previous cell state.
|
32 | * @param h Previous cell output.
|
33 | *
|
34 | * @doc {heading: 'Operations', subheading: 'RNN'}
|
35 | */
|
36 | declare function basicLSTMCell_(forgetBias: Scalar | TensorLike, lstmKernel: Tensor2D | TensorLike, lstmBias: Tensor1D | TensorLike, data: Tensor2D | TensorLike, c: Tensor2D | TensorLike, h: Tensor2D | TensorLike): [Tensor2D, Tensor2D];
|
37 | export declare const basicLSTMCell: typeof basicLSTMCell_;
|
38 | export {};
|