docstr: Tests that alg=philox and alg=None are the same (on CPU/GPU).
docstr_tok: ["Tests","that","alg=philox","and","alg=None","are","the","same","(","on","CPU\/GPU",")","."]
code: def _test_explicit_alg(self, case, seed):
      """Tests that alg=philox and alg=None are the same (on CPU/GPU)."""
      with ops.device(get_device().name):
          _, stateless_op, _ = case
          implicit_alg = stateless_op(seed=seed)
          # All device types allowed in this test will result in Philox
          explicit_alg = stateless_op(seed=seed, alg="philox")
          self.assertAllClose(implicit_alg, explicit_alg)
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.compat import compat
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the StatelessOpsTest obj's underlying member method code with example usage: obj._test_explicit_alg(case, seed) without return types