UNPKG

clustering-tfjs

Version:

High-performance TypeScript clustering algorithms (K-Means, Spectral, Agglomerative) with TensorFlow.js acceleration and scikit-learn compatibility

14 lines 491 B
/** * Utility functions for working with tensors across different environments */ import * as tf from '../tf-adapter'; /** * Check if a value is a TensorFlow.js tensor * Works across different environments where tf.Tensor might not be directly available */ export declare function isTensor(value: unknown): value is tf.Tensor; /** * Check if a value is a 2D tensor */ export declare function isTensor2D(value: unknown): value is tf.Tensor2D; //# sourceMappingURL=tensor-utils.d.ts.map