class_docstr: Returns the absolute value of a complex tensor.
  
  Parameters
  ----------
  x: tensor<[*d], T> (Required)
  
  Returns
  -------
  tensor<[*d], fp32>
      * A float tensor with the same shape as ``x``
  
  Attributes
  ----------
  T: complex64
class_docstr_tok: ["Returns","the","absolute","value","of","a","complex","tensor",".","Parameters","--","--","--","--","--","x",":","tensor","<","[","*","d","]",",","T",">","(","Required",")","Returns","--","--","--","-","tensor","<","[","*","d","]",",","fp32",">","*","A","float","tensor","with","the","same","shape","as","``","x","``","Attributes","--","--","--","--","--","T",":","complex64"]
code: def type_inference(self):
      if not isinstance(self.x, ComplexVar):
          raise ValueError("x must be a ComplexVar.")
      return types.tensor(
          infer_fp_dtype_from_complex(self.x.dtype), self.x.shape
      )
  
imports: from typing import Optional, Tuple
  import numpy
  from coremltools.converters.mil.mil import Operation, types
  from coremltools.converters.mil.mil.input_type import DefaultInputs, InputSpec, TensorInputType
  from coremltools.converters.mil.mil.ops.registry import SSAOpRegistry
  from coremltools.converters.mil.mil.types.symbolic import any_symbolic, is_symbolic
  from coremltools.converters.mil.mil.types.type_mapping import infer_complex_dtype, infer_fp_dtype_from_complex
  from coremltools.converters.mil.mil.var import ComplexVar, Var
label_desc: Use image node_id 1 for calling the complex_abs obj's underlying member method code with example usage: obj.type_inference() and returns: types