MCPcopy
hub / github.com/tinygrad/tinygrad / is_param_

Method is_param_

tinygrad/tensor.py:170–172  ·  view source on GitHub ↗
(self, is_param:bool=True)

Source from the content-addressed store, hash-verified

168 return Tensor(UOp.unique_const(fill_value, dtype, device), **kwargs)
169
170 def is_param_(self, is_param:bool=True) -> Tensor:
171 self.is_param = is_param
172 return self
173
174 class train(ContextDecorator):
175 def __init__(self, mode:bool = True): self.mode = mode

Callers 15

cloneMethod · 0.95
toMethod · 0.95
shardMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
test_to_preservesMethod · 0.80
test_shard_preservesMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
whiteningFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_to_preservesMethod · 0.64
test_shard_preservesMethod · 0.64