MCPcopy 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

cosFunction · 0.45
polarFunction · 0.45
get_lrMethod · 0.45
_get_closed_form_lrMethod · 0.45
get_lrMethod · 0.45
_annealing_cosMethod · 0.45
_cosine_annealMethod · 0.45
general_cosineFunction · 0.45
fooMethod · 0.45
forwardMethod · 0.45
cond_predicateFunction · 0.45

Calls

no outgoing calls

Tested by 15

get_a_test_layerMethod · 0.36
forwardMethod · 0.36
unwrapMethod · 0.36
fMethod · 0.36
f_gradMethod · 0.36
f_backwardMethod · 0.36
nopMethod · 0.36
fMethod · 0.36
fMethod · 0.36
backwardMethod · 0.36