get_variable_by_name has different arguments, it is not possible to unify these tests with get_tensor_by_name.
get_variable_by_name has different arguments, it is not possible to unify these tests with get_tensor_by_name.

GPflow/GPflow