Path: tensorflow/tensorflow/python/ops/math_ops.py
...
from tensorflow.python.ops import gen_math_ops
...
@tf_export("math.multiply", "multiply")
@dispatch.register_binary_elementwise_api
@dispatch.add_dispatch_support
def multiply(x, y, name=None):
return gen_math_ops.mul(x, y, name)
Path: tensorflow/tensorflow/python/ops/numpy_ops/np_math_ops.py
@np_utils.np_doc('multiply')
def multiply(x1, x2):
def mul_or_and(x1, x2):
if x1.dtype == dtypes.bool:
assert x2.dtype == dtypes.bool
return math_ops.logical_and(x1, x2)
return math_ops.multiply(x1, x2)
return _bin_op(mul_or_and, x1, x2)