/** * @license * Copyright 2021, JsData. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================================== */ /** * Takes a `tf` instance and adds the `Unique` kernel to * it in case it uses a `tensorflow` backend and the `Unique` * kernel is missing. This polyfill becomes unecessary as soon * as the `Unique` kernel is added to `tfjs-node`. * * @see {@link https://github.com/tensorflow/tfjs/pull/5956} * @see {@link https://github.com/tensorflow/tfjs/issues/4595} * * @param tf The TFJS instance to be polyfilled. */ export declare function polyfillUnique(tf: any): void;