MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / increment_fn

Method increment_fn

tensorflow/python/data/kernel_tests/map_test.py:445–447  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

443 "counter", (), dtypes.int32, use_resource=True)
444
445 def increment_fn(x):
446 counter_var.assign_add(1)
447 return x
448
449 dataset = dataset_ops.Dataset.range(10).map(increment_fn)
450

Callers

nothing calls this directly

Calls 1

assign_addMethod · 0.45

Tested by

no test coverage detected