Source: vis/grad_modifiers.py#L0


negate

negate(grads)

Negates the gradients.

Args:

  • grads: A numpy array of grads to use.

Returns:

The negated gradients.


absolute

absolute(grads)

Computes absolute gradients.

Args:

  • grads: A numpy array of grads to use.

Returns:

The absolute gradients.


invert

invert(grads)

Inverts the gradients.

Args:

  • grads: A numpy array of grads to use.

Returns:

The inverted gradients.


relu

relu(grads)

Clips negative gradient values.

Args:

  • grads: A numpy array of grads to use.

Returns:

The rectified gradients.


small_values

small_values(grads)

Can be used to highlight small gradient values.

Args:

  • grads: A numpy array of grads to use.

Returns:

The modified gradients that highlight small values.


get

get(identifier)