class_docstr: ComputeSpec
  The Specification for computation pattern
  
  Args:
      compute_pattern (ComputePattern): an Enum instance for compute pattern.
code: def __init__(self, compute_pattern: ComputePattern) -> None:
      assert isinstance(compute_pattern, ComputePattern)
      self.compute_pattern = compute_pattern
      # Make sure output tensors are replicate
      self.output_replicate = True
  
file_path: colossalai/colossalai/legacy/tensor/compute_spec.py
imports: from enum import Enum
label_desc: Use image node_id 1 to create a new ComputeSpec object from inherited base classes: object with example: obj = ComputeSpec(compute_pattern)