MCPcopy
hub / github.com/tensorflow/tfjs / cast

Method cast

tfjs-core/src/tensor.ts:195–195  ·  view source on GitHub ↗
(x: T, dtype: DataType)

Source from the content-addressed store, hash-verified

193 */
194export interface OpHandler {
195 cast<T extends Tensor>(x: T, dtype: DataType): T;
196 buffer<R extends Rank, D extends DataType>(
197 shape: ShapeMap[R], dtype: D,
198 values?: DataTypeMap[D]): TensorBuffer<R, D>;

Callers 15

confusionMatrixFunction · 0.65
binaryAccuracyFunction · 0.65
categoricalAccuracyFunction · 0.65
truePositivesFunction · 0.65
falseNegativesFunction · 0.65
falsePositivesFunction · 0.65
precisionFunction · 0.65
recallFunction · 0.65
l2NormalizeFunction · 0.65
categoricalCrossentropyFunction · 0.65

Implementers 1

Tensortfjs-core/src/tensor.ts

Calls

no outgoing calls

Tested by

no test coverage detected