Skip to content

Commit

Permalink
relax regexp for finding weights by name to account for name_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
transcranial committed Dec 29, 2017
1 parent b4ca58c commit 5bf621d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ export default class Model {
if (weightNames && weightNames.length) {
const weights = weightNames.map(weightName => {
const weightDef = _.find(this.modelWeights, w => {
const weightRE = new RegExp(`^${weightName}`)
const weightRE = new RegExp(`^.*${weightName}`)
return weightRE.test(w.weightName)
})

Expand Down

0 comments on commit 5bf621d

Please sign in to comment.