rasa/core/policies/embedding_policy.py
def _create_tf_no_intent_embed(self,
                                   x_for_no_intent_i: tf.Tensor) -> tf.Tensor:
        """Create embedding user vector for empty intent."""

        layer_name_suffix = 'a_and_b' if self.share_embedding else 'a'

        x_for_no_intent = self._create_tf_nn(
            x_for_no_intent_i,
            self.hidden_layer_sizes['a'],
            droprate=0,
            layer_name_suffix=layer_name_suffix
        )
        return tf.stop_gradient(
            self._create_embed(x_for_no_intent,
                               layer_name_suffix=layer_name_suffix))
Create embedding user vector for empty intent.
Create embedding user vector for empty intent.
Create embedding user vector for empty intent .
def _create_tf_no_intent_embed(self,
                                   x_for_no_intent_i: tf.Tensor) -> tf.Tensor:
        layer_name_suffix = 'a_and_b' if self.share_embedding else 'a'
        x_for_no_intent = self._create_tf_nn(
            x_for_no_intent_i,
            self.hidden_layer_sizes['a'],
            droprate=0,
            layer_name_suffix=layer_name_suffix
        )
        return tf.stop_gradient(
            self._create_embed(x_for_no_intent,
                               layer_name_suffix=layer_name_suffix))
def _create_tf_no_intent_embed ( self , x_for_no_intent_i : tf . Tensor ) -> tf . Tensor : layer_name_suffix = 'a_and_b' if self . share_embedding else 'a' x_for_no_intent = self . _create_tf_nn ( x_for_no_intent_i , self . hidden_layer_sizes [ 'a' ] , droprate = 0 , layer_name_suffix = layer_name_suffix ) return tf . stop_gradient ( self . _create_embed ( x_for_no_intent , layer_name_suffix = layer_name_suffix ) )
Create embedding user vector for empty intent.
Create embedding user vector for empty intent .
"""Create embedding user vector for empty intent."""
self
x_for_no_intent_i
tf.Tensor