class_docstr: ComputeSpec
  The Specification for computation pattern
  
  Args:
      compute_pattern (ComputePattern): an Enum instance for compute pattern.
code: def set_output_replicate(self, flag: bool = True):
      self.output_replicate = flag
  
file_path: colossalai/colossalai/legacy/tensor/compute_spec.py
imports: from enum import Enum
label_desc: Use image node_id 3 for calling the ComputeSpec obj's underlying member method code with example usage: obj.set_output_replicate(flag) without return types