MCPcopy Index your code
hub / github.com/tensorflow/tfjs / evaluateFlag

Method evaluateFlag

tfjs-core/src/environment.ts:143–149  ·  view source on GitHub ↗
(flagName: string)

Source from the content-addressed store, hash-verified

141 }
142
143 private evaluateFlag(flagName: string): FlagValue|Promise<FlagValue> {
144 if (this.flagRegistry[flagName] == null) {
145 throw new Error(
146 `Cannot evaluate flag '${flagName}': no evaluation function found.`);
147 }
148 return this.flagRegistry[flagName].evaluationFn();
149 }
150
151 setFlags(flags: Flags) {
152 this.flags = Object.assign({}, flags);

Callers 2

getAsyncMethod · 0.95
getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected