MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / build_linear

Function build_linear

NLP/Text2SQL-BASELINE/text2sql/utils/nn_utils.py:35–42  ·  view source on GitHub ↗
(n_in, n_out, name=None, init=None)

Source from the content-addressed store, hash-verified

33
34
35def build_linear(n_in, n_out, name=None, init=None):
36 return nn.Linear(
37 n_in,
38 n_out,
39 weight_attr=paddle.ParamAttr(
40 name='%s.w_0' % name if name is not None else None,
41 initializer=init),
42 bias_attr='%s.b_0' % name if name is not None else None, )
43
44
45def build_layer_norm(n_in, name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected