Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ cos
Method
cos
torch/_inductor/codegen/cpp.py:535–536 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
533
534
@staticmethod
535
def
cos(x):
536
return
f
"std::cos({x})"
537
538
@staticmethod
539
def
neg(x):
Callers
15
cos
Function · 0.45
polar
Function · 0.45
get_lr
Method · 0.45
_get_closed_form_lr
Method · 0.45
get_lr
Method · 0.45
_annealing_cos
Method · 0.45
_cosine_anneal
Method · 0.45
general_cosine
Function · 0.45
foo
Method · 0.45
forward
Method · 0.45
constrain_as_value_example
Function · 0.45
cond_predicate
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_transformerencoder_square_input
Method · 0.36
get_a_test_layer
Method · 0.36
forward
Method · 0.36
unwrap
Method · 0.36
f
Method · 0.36
f_grad
Method · 0.36
f_backward
Method · 0.36
nop
Method · 0.36
f
Method · 0.36
f
Method · 0.36
test_composite_registered_to_cpu
Method · 0.36
backward
Method · 0.36