MCPcopy Create free account
hub / github.com/alibaba/euler / fm

Method fm

tf_euler/python/utils/encoders.py:803–810  ·  view source on GitHub ↗
(self, hidden)

Source from the content-addressed store, hash-verified

801 return ld(fc)
802
803 def fm(self, hidden):
804 o = len(hidden)
805 for i in range(1, o):
806 comb = tf.multiply(hidden[0], hidden[i])
807 hidden += [comb]
808 fc = tf.concat(hidden, 1)
809 ld = layers.Dense(self.dims[-1], activation=tf.nn.relu, use_bias=True)
810 return ld(fc)
811
812 def att(self, hidden):
813 hidden = [tf.expand_dims(h, 1) for h in hidden]

Callers 1

callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected