class_docstr: Test cases for unary operators.
class_docstr_tok: ["Test","cases","for","unary","operators","."]
code: def _assertSoftplusMatchesExpected(
      self, features, dtype, equality_test=None, rtol=1e-6, atol=9.1e-6
  ):
      features = np.array(features, dtype=dtype)
      zero = np.asarray(0).astype(dtype)
      expected = np.logaddexp(zero, features).astype(dtype)
      self._assertOpOutputMatchesExpected(
          nn_ops.softplus,
          features,
          expected=expected,
          equality_test=equality_test,
          rtol=rtol,
          atol=atol,
      )
  
imports: import platform
  import unittest
  import numpy
  import six
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import gen_functional_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 32 for calling the UnaryOpsTest obj's underlying member method code with example usage: obj._assertSoftplusMatchesExpected(features, dtype, equality_test, rtol, atol) without return types