class_docstr: Arbitrary tangent space when no more-efficient special case applies.
class_docstr_tok: ["Arbitrary","tangent","space","when","no","more-efficient","special","case","applies","."]
docstr: Initialize a GeneralSpace with a basis.
  
  Args:
    basis: `Basis` object representing a basis of shape
      `[N, B1, ..., Bk, D1, ... Dl]`, where `N` is the
      number of bases vectors, `Bi` are batch dimensions and `Di` refer to
      the dimensions that this basis lives in.
    computed_log_volume: Optional `Tensor` of shape `[B1, ..., Bk]`. Computed
      log-volume coefficient.
      Default `None`.
docstr_tok: ["Initialize","a","GeneralSpace","with","a","basis",".","Args",":","basis",":","`","Basis","`","object","representing","a","basis","of","shape","`","[","N",",","B1",",","...",",","Bk",",","D1",",","...","Dl","]","`",",","where","`","N","`","is","the","number","of","bases","vectors",",","`","Bi","`","are","batch","dimensions","and","`","Di","`","refer","to","the","dimensions","that","this","basis","lives","in",".","computed_log_volume",":","Optional","`","Tensor","`","of","shape","`","[","B1",",","...",",","Bk","]","`",".","Computed","log-volume","coefficient",".","Default","`","None","`","."]
code: def __init__(self, basis, computed_log_volume=None):
      """Initialize a GeneralSpace with a basis.
  
      Args:
        basis: `Basis` object representing a basis of shape
          `[N, B1, ..., Bk, D1, ... Dl]`, where `N` is the
          number of bases vectors, `Bi` are batch dimensions and `Di` refer to
          the dimensions that this basis lives in.
        computed_log_volume: Optional `Tensor` of shape `[B1, ..., Bk]`. Computed
          log-volume coefficient.
          Default `None`.
      """
      self.basis = basis
      self.computed_log_volume = computed_log_volume
  
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import nest_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 1 to create a new GeneralSpace object from inherited base classes: TangentSpace with example: obj = GeneralSpace(basis, computed_log_volume)