2e49a9c0c5beae53787aaf2c87c85f5d0412e867,src/graph_transpiler/webdnn/graph/place_holder.py,PlaceHolder,__gt__,#PlaceHolder#Any#,368
Before Change
if not self.is_resolved:
raise ValueError("First operand is unresolved placeholder. It can"t be compared.")
if isinstance(other, PlaceHolder):
if not other.is_resolved:
raise ValueError("Second operand is unresolved placeholder. It can"t be compared.")
return self.value > other.value
else:
return self.value > other
def __lt__(self, other: Union[int, "PlaceHolder"]) -> bool:
if not self.is_resolved:
raise ValueError("First operand is unresolved placeholder. It can"t be compared.")
After Change
if not self.is_resolved:
raise ValueError("First operand is unresolved placeholder. It can"t be compared.")
if not PlaceHolder.check_resolved(other):
raise ValueError("Second operand is unresolved placeholder. It can"t be compared.")
return self.value > PlaceHolder.force_int(other)
def __lt__(self, other: Union[int, "PlaceHolder"]) -> bool:
if not self.is_resolved:
raise ValueError("First operand is unresolved placeholder. It can"t be compared.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 15
Instances
Project Name: mil-tokyo/webdnn
Commit Name: 2e49a9c0c5beae53787aaf2c87c85f5d0412e867
Time: 2017-06-19
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/place_holder.py
Class Name: PlaceHolder
Method Name: __gt__
Project Name: mil-tokyo/webdnn
Commit Name: 2e49a9c0c5beae53787aaf2c87c85f5d0412e867
Time: 2017-06-19
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/place_holder.py
Class Name: PlaceHolder
Method Name: __le__
Project Name: mil-tokyo/webdnn
Commit Name: 2e49a9c0c5beae53787aaf2c87c85f5d0412e867
Time: 2017-06-19
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/place_holder.py
Class Name: PlaceHolder
Method Name: __ge__