Skip to content

Commit

Permalink
Merge branch 'master' into filter-grads
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostvv committed Apr 22, 2020
2 parents 8da3fbb + c3bbc31 commit 620cea8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 28 deletions.
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/ask_question.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'type:bug :bug:'
labels: 'area:rasa-oss :ferris_wheel:,type:bug :bug:'
assignees: ''

---
Expand Down
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://forum.rasa.com/
about: If you have a "How do I?" question please ask in the forum https://forum.rasa.com
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -2,7 +2,7 @@
name: Feature request
about: Suggest an idea on how to improve Rasa
title: ''
labels: 'type:enhancement :sparkles:'
labels: 'area:rasa-oss :ferris_wheel:,type:enhancement :sparkles:'
assignees: ''

---
Expand Down
18 changes: 10 additions & 8 deletions rasa/nlu/classifiers/diet_classifier.py
Expand Up @@ -1191,17 +1191,19 @@ def _combine_sparse_dense_features(
)
else:
_f = f
dense_features.append(self._tf_layers[f"sparse_to_dense.{name}"](_f))

dense_f = self._tf_layers[f"sparse_to_dense.{name}"](_f)

if dense_dropout:
dense_f = self._tf_layers[f"dense_input_dropout.{name}"](
dense_f, self._training
)

dense_features.append(dense_f)
else:
dense_features.append(f)

outputs = tf.concat(dense_features, axis=-1) * mask
if dense_dropout:
outputs = self._tf_layers[f"dense_input_dropout.{name}"](
outputs, self._training
)

return outputs
return tf.concat(dense_features, axis=-1) * mask

def _features_as_seq_ids(
self, features: List[Union[np.ndarray, tf.Tensor, tf.SparseTensor]], name: Text
Expand Down

0 comments on commit 620cea8

Please sign in to comment.