federer
Version:
Experiments in asynchronous federated learning and decentralized learning
13 lines • 583 B
TypeScript
/**
* Asserts that a piece of code does not leak TensorFlow.js tensors.
*
* This is useful for debugging memory leaks. However, calls to this function
* can also be left in the code to indicate that we do not expect the total
* number of tensors in memory to grow once the code has finished executing.
*
* @param thunkName Name of the thunk; used for assertion messages
* @param thunk Function to execute
* @returns The value returned by `thunk`
*/
export declare function assertNoLeakingTensors<T>(thunkName: string, thunk: () => T): T;
//# sourceMappingURL=debug.d.ts.map