function makeTypesMatch(a, b) {
    if (a.dtype === b.dtype) return [
        a,
        b
    ];
    const dtype = (0, _types.upcastType)(a.dtype, b.dtype);
    return [
        a.cast(dtype),
        b.cast(dtype)
    ];
}
Extracts any `Tensor`s found within the provided object.

@param container an object that may be a `Tensor` or may directly contain
  `Tensor`s, such as a `Tensor[]` or `{key: Tensor, ...}`. In general it
  is safe to pass any object here, except that `Promise`s are not
  supported.
@returns An array of `Tensors` found within the passed object. If the
  argument is simply a `Tensor', a list containing that `Tensor` is
  returned. If the object is not a `Tensor` or does not
  contain `Tensors`, an empty list is returned.