View source on GitHub |
Check if all items in list2 are in list1.
tf_agents.utils.test_utils.contains(
list1, list2
)
This function handles the case when the parameters are lists of np.arrays (which wouldn't be handled by something like .issubset(...)
Args | |
---|---|
list1
|
List which may or may not contain list2. |
list2
|
List to check if included in list 1. |
Returns | |
---|---|
A boolean indicating whether list2 is contained in list1. |