Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async load(infix) {
const aPath = `${SAVE_METHOD}${infix}_actor/model.json`;
const cPath = `${SAVE_METHOD}${infix}_critic/model.json`;
this.actor = await tf.loadLayersModel(aPath);
this.critic = await tf.loadLayersModel(cPath);
hardUpdate(this.actor, this.actorTarget);
hardUpdate(this.critic, this.criticTarget);
}
}
async load(infix) {
const aPath = `${SAVE_METHOD}${infix}_actor/model.json`;
const cPath = `${SAVE_METHOD}${infix}_critic/model.json`;
this.actor = await tf.loadLayersModel(aPath);
this.critic = await tf.loadLayersModel(cPath);
hardUpdate(this.actor, this.actorTarget);
hardUpdate(this.critic, this.criticTarget);
}
}