mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[mps/inductor] Add support for log(). (#144169)
Tested via: ``` % pytest test/inductor/test_mps_basic.py ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/144169 Approved by: https://github.com/jansel, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
087c625261
commit
479d6f2199
@ -116,6 +116,10 @@ class MetalOverrides(OpOverrides):
|
||||
def isinf(x: CSEVariable) -> str:
|
||||
return f"metal::isinf({x})"
|
||||
|
||||
@staticmethod
|
||||
def log(x: CSEVariable) -> str:
|
||||
return f"metal::log({x})"
|
||||
|
||||
@staticmethod
|
||||
def abs(x: CSEVariable) -> str:
|
||||
return f"metal::abs({x})"
|
||||
|
Reference in New Issue
Block a user