UNPKG

385 BTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-core/dist/ops/operation" />
2export declare const OP_SCOPE_SUFFIX = "__op";
3/**
4 * Used for wrapping functions that perform math operations on
5 * Tensors. The function will be wrapped in a named scope that cleans all
6 * memory usage after the function is done.
7 */
8export declare function op<T extends Function>(f: {
9 [name: string]: T;
10}): T;