docstr: Builds a graph to orthogonalize weight W
  Arguments:
      W (Tensor): Weight in the mapper
docstr_tok: ["Builds","a","graph","to","orthogonalize","weight","W","Arguments",":","W","(","Tensor",")",":","Weight","in","the","mapper"]
code: def _build_ortho_graph(self, W):
      """
      Builds a graph to orthogonalize weight W
      Arguments:
          W (Tensor): Weight in the mapper
      """
      with tf.variable_scope("Ortho", reuse=tf.AUTO_REUSE):
          a = tf.scalar_mul((1 + self.beta), W)  # (1+B)W
          b = tf.matmul(tf.transpose(W), W)  # WWt
          c = tf.matmul(W, b)  # W(W.Wt)
          d = tf.scalar_mul(self.beta, c)  # B(W.Wt)W
          ortho_weight = a - d
          return ortho_weight
  
imports: from __future__ import print_function, division
  import io
  import os
  import time
  import numpy
  import scipy
  import tensorflow
label_desc: Use image node_id 4 for calling the Generator obj's underlying member method code with example usage: obj._build_ortho_graph(W) and returns: ortho_weight