MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __rmod__

Method __rmod__

tensorflow/python/framework/tensor_shape.py:586–596  ·  view source on GitHub ↗

Returns `other` modulo `self`. Args: other: Another Dimension, or a value accepted by `as_dimension`. Returns: A Dimension whose value is `other` modulo `self`.

(self, other)

Source from the content-addressed store, hash-verified

584 return Dimension(self._value % other.value)
585
586 def __rmod__(self, other):
587 """Returns `other` modulo `self`.
588
589 Args:
590 other: Another Dimension, or a value accepted by `as_dimension`.
591
592 Returns:
593 A Dimension whose value is `other` modulo `self`.
594 """
595 other = as_dimension(other)
596 return other % self
597
598 def __lt__(self, other):
599 """Returns True if `self` is known to be less than `other`.

Callers

nothing calls this directly

Calls 1

as_dimensionFunction · 0.85

Tested by

no test coverage detected