def encompasses_broadcastable(b1, b2):
 if (len(b1) < len(b2)):
  return False
 b1 = b1[(- len(b2)):]
 return (not any(((v1 and (not v2)) for (v1, v2) in zip(b1, b2))))

def encompasses_broadcastable ( b1 , b2 ) : if ( len ( b1 ) < len ( b2 ) ) : return False b1 = b1 [ ( - len ( b2 ) ) : ] return ( not any ( ( ( v1 and ( not v2 ) ) for ( v1 , v2 ) in zip ( b1 , b2 ) ) ) )
parameters b1 the broadcastable attribute of a tensor type .