Home
last modified time | relevance | path

Searched refs:mutable_local (Results 1 – 20 of 20) sorted by relevance

/external/pytorch/torch/_dynamo/
Dside_effects.py155 if not is_side_effect_safe(item.mutable_local):
163 if item.mutable_local not in self.store_attr_mutations:
164 self.store_attr_mutations[item.mutable_local] = {}
165 self.store_attr_mutations[item.mutable_local][name] = value
169 result = self.store_attr_mutations[item.mutable_local][name]
200 return isinstance(item.mutable_local, AttributeMutation)
204 self.store_attr_mutations.get(item.mutable_local)
210 ) and name in self.store_attr_mutations.get(item.mutable_local, ())
213 if isinstance(item.mutable_local, AttributeMutationNew):
216 return item.mutable_local in self.store_attr_mutations
[all …]
Dcodegen.py138 if isinstance(value.mutable_local, MutableSideEffects):
139 self(value.mutable_local.source)
143 if value.mutable_local and value.mutable_local in self.tempvars:
144 output.append(self.create_load(self.tempvars[value.mutable_local]))
257 if value.mutable_local:
258 self.tempvars[value.mutable_local] = var
Dsymbolic_convert.py1822 self.push(ListVariable(items, mutable_local=MutableLocal()))
1828 new_set = SetVariable(items, mutable_local=MutableLocal())
1839 self.push(cls(items, mutable_local=MutableLocal()))
1849 self.push(ConstDictVariable(d, mutable_local=MutableLocal()))
1862 mutable_local=MutableLocal(),
1880 mutable_local=MutableLocal(),
1896 assert obj.mutable_local
1904 assert obj.mutable_local
1912 assert obj.mutable_local
2111 assert obj.mutable_local
[all …]
/external/pytorch/torch/_dynamo/variables/
Diter.py54 return variables.ListIteratorVariable(items, mutable_local=MutableLocal())
99 return variables.ListIteratorVariable(items, mutable_local=MutableLocal())
113 return variables.ListIteratorVariable(items, mutable_local=MutableLocal())
157 list(v), mutable_local=MutableLocal()
160 mutable_local=MutableLocal(),
168 return variables.ListIteratorVariable(result, mutable_local=MutableLocal())
172 *args, mutable_local=MutableLocal()
181 return variables.CountIteratorVariable(*args, mutable_local=MutableLocal())
183 return variables.CycleIteratorVariable(*args, mutable_local=MutableLocal())
256 assert self.mutable_local
[all …]
Dlists.py103 mutable_local=MutableLocal() if self.mutable_local else None,
277 mutable_local=MutableLocal() if self.mutable_local else None,
328 if name == "append" and self.mutable_local:
336 and self.mutable_local
346 elif name == "insert" and self.mutable_local:
356 elif name == "pop" and self.mutable_local:
360 elif name == "clear" and self.mutable_local:
367 and self.mutable_local
384 return self.modified(items, mutable_local=MutableLocal())
385 elif name == "reverse" and self.mutable_local:
[all …]
Dbase.py370 mutable_local: MutableLocal = None,
374 self.mutable_local = mutable_local
Dbuiltin.py402 [*a.items, *b.unpack_var_sequence(tx)], mutable_local=MutableLocal()
413 if not a.mutable_local or not b.has_unpack_var_sequence(tx):
444 mutable_local=MutableLocal(),
1242 mutable_local=MutableLocal(),
1262 mutable_local=MutableLocal(),
1270 mutable_local=MutableLocal(),
1339 return ConstDictVariable(arg, user_cls, mutable_local=MutableLocal())
1341 return arg.clone(user_cls=user_cls, mutable_local=MutableLocal())
1355 return ConstDictVariable(items, user_cls, mutable_local=MutableLocal())
1381 items, user_cls=user_cls, mutable_local=MutableLocal()
[all …]
Ddicts.py281 return self.clone(items=self.items.copy(), mutable_local=MutableLocal())
285 elif name == "__setitem__" and arg_hashable and self.mutable_local:
290 elif name == "__delitem__" and arg_hashable and self.mutable_local:
300 elif name == "pop" and arg_hashable and self.mutable_local:
321 and self.mutable_local
339 elif name == "setdefault" and arg_hashable and self.mutable_local:
518 and self.mutable_local
704 elif istype(self.mutable_local, MutableLocal) and self.source is None:
Dnn_module.py553 return ListIteratorVariable(result, mutable_local=MutableLocal())
583 return ListIteratorVariable(result, mutable_local=MutableLocal())
593 return ListIteratorVariable(result, mutable_local=MutableLocal())
601 return ListIteratorVariable(result, mutable_local=MutableLocal())
609 return ListIteratorVariable(result, mutable_local=MutableLocal())
630 return ListIteratorVariable(result, mutable_local=MutableLocal())
639 return ListIteratorVariable(result, mutable_local=MutableLocal())
952 deduplicated_params, mutable_local=MutableLocal()
Duser_defined.py377 mutable_local=MutableLocal(),
386 return variables.lists.DequeVariable(items, mutable_local=MutableLocal())
511 mutable_local=MutableLocal(),
1347 mutable_local=None, argument
1353 self.mutable_local = mutable_local
Dbuilder.py1268 output, mutable_local=MutableLocal()
1283 output, mutable_local=MutableLocal(), source=self.source
2249 return ListVariable(unpacked, mutable_local=MutableLocal(), **options)
2845 [create(tx, x) for x in value], mutable_local=MutableLocal()
2850 mutable_local=MutableLocal(),
2853 [create(tx, x) for x in value], mutable_local=MutableLocal()
2870 value, mutable_local=MutableLocal()
2875 value, mutable_local=MutableLocal()
2880 value, mutable_local=MutableLocal()
Dmisc.py167 and isinstance(objvar.mutable_local, AttributeMutationNew)
389 callable, mutable_local=variables.base.MutableLocal()
539 mutable_local=variables.base.MutableLocal(),
1578 return RandomVariable(seed=seed, mutable_local=variables.base.MutableLocal())
Dhigher_order_ops.py1651 if ctx.mutable_local in tx.output.side_effects.store_attr_mutations:
1654 in tx.output.side_effects.store_attr_mutations[ctx.mutable_local]
Dfunctions.py616 value, mutable_local=MutableLocal()
Dtensor.py1020 mutable_local=variables.base.MutableLocal(),
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dchttp2_transport.cc534 t->settings.mutable_local().SetMaxConcurrentStreams(value); in read_channel_args()
544 t->settings.mutable_local().SetHeaderTableSize(value); in read_channel_args()
546 t->settings.mutable_local().SetMaxHeaderListSize( in read_channel_args()
550 t->settings.mutable_local().SetMaxFrameSize(value); in read_channel_args()
555 t->settings.mutable_local().SetInitialWindowSize(value); in read_channel_args()
559 t->settings.mutable_local().SetAllowTrueBinaryMetadata(value != 0); in read_channel_args()
563 t->settings.mutable_local().SetPreferredReceiveCryptoMessageSize(INT_MAX); in read_channel_args()
641 settings.mutable_local().SetEnablePush(false); in grpc_chttp2_transport()
642 settings.mutable_local().SetMaxConcurrentStreams(0); in grpc_chttp2_transport()
644 settings.mutable_local().SetMaxHeaderListSize(DEFAULT_MAX_HEADER_LIST_SIZE); in grpc_chttp2_transport()
[all …]
Dhttp2_settings.h143 Http2Settings& mutable_local() { return local_; } in mutable_local() function
Dwriting.cc265 t_->settings.mutable_local().SetMaxConcurrentStreams( in FlushSettings()
/external/grpc-grpc/test/core/transport/chttp2/
Dhttp2_settings_test.cc487 settings_manager.mutable_local().SetInitialWindowSize(100000); in TEST()
502 settings_manager.mutable_local().SetInitialWindowSize(100000); in TEST()
/external/pytorch/docs/source/
Dtorch.compiler_dynamo_deepdive.rst320 self.push(ListVariable(items, mutable_local=MutableLocal()))