Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Remove gradMode from public API as it is confusing users. #1414

Merged
merged 1 commit into from
Nov 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export class Environment {
*/
/** @doc {heading: 'Performance', subheading: 'Memory'} */
static tidy<T extends TensorContainer>(
nameOrFn: string|ScopeFn<T>, fn?: ScopeFn<T>, gradMode = false): T {
return ENV.engine.tidy(nameOrFn, fn, gradMode);
nameOrFn: string|ScopeFn<T>, fn?: ScopeFn<T>): T {
return ENV.engine.tidy(nameOrFn, fn);
}

/**
Expand Down