UNPKG

@tensorflow/tfjs-core

Version:

Hardware-accelerated JavaScript library for machine intelligence

8 lines (7 loc) 369 B
import { Tensor } from '../tensor'; import { TensorLike } from '../types'; declare function softmax_<T extends Tensor>(logits: T | TensorLike, dim?: number): T; declare function logSoftmax_<T extends Tensor>(logits: T | TensorLike, axis?: number): T; export declare const softmax: typeof softmax_; export declare const logSoftmax: typeof logSoftmax_; export {};