MCPcopy
hub / github.com/apple/coremltools / add

Class add

coremltools/converters/mil/mil/ops/defs/iOS15/elementwise_binary.py:93–116  ·  view source on GitHub ↗

Return ``x + y`` element-wise with `broadcasting `_. Parameters ---------- x: <\\*, T> (Required) * Shape must be compatible with ``y`` in broadcast. y: <\\*, T> (Required) * Shape must be comp

Source from the content-addressed store, hash-verified

91
92@register_op
93class add(elementwise_binary):
94 """
95 Return ``x + y`` element-wise with
96 `broadcasting <https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html>`_.
97
98 Parameters
99 ----------
100 x: <\\*, T> (Required)
101 * Shape must be compatible with ``y`` in broadcast.
102
103 y: <\\*, T> (Required)
104 * Shape must be compatible with ``x`` in broadcast.
105
106 Returns
107 -------
108 <\\*, T>
109
110 Attributes
111 ----------
112 T: fp16, fp32, i32
113 """
114
115 def get_operator(self):
116 return operator.add
117
118
119@register_op

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected