diff --git a/pysc2/lib/features.py b/pysc2/lib/features.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/features.py
+++ b/pysc2/lib/features.py
@@ -441,6 +441,12 @@ class Dimensions(object):
   def __repr__(self):
     return "Dimensions(screen={}, minimap={})".format(self.screen, self.minimap)
 
+  def __eq__(self, other):
+    return self.screen == other.screen and self.minimap == other.minimap
+
+  def __ne__(self, other):
+    return not self == other
+
 
 class AgentInterfaceFormat(object):
   """Observation and action interface format specific to a particular agent."""
Support __eq__ and __ne__ in features.Dimensions.

PiperOrigin-RevId: <I>