Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for isComplex (0.13 sec)

  1. src/cmd/compile/internal/types2/expr.go

    			x.mode = invalid
    			return
    		}
    
    		// check for divisor underflow in complex division (see go.dev/issue/20227)
    		if x.mode == constant_ && y.mode == constant_ && isComplex(x.typ) {
    			re, im := constant.Real(y.val), constant.Imag(y.val)
    			re2, im2 := constant.BinaryOp(re, token.MUL, re), constant.BinaryOp(im, token.MUL, im)
    			if constant.Sign(re2) == 0 && constant.Sign(im2) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

        MATCH(DT_STRING, string);
    
        // TODO(b/188995810): DenseElementsAttr::get doesn't support complex
        // Attributes being passed, so we bail out for now. This should just be
        //   MATCH(DT_COMPLEX64, scomplex) / 2;
        //   MATCH(DT_COMPLEX128, dcomplex) / 2;
        // when DenseElementsAttr is updated.
        case DT_COMPLEX64:
        case DT_COMPLEX128:
        default:
          return -1;
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/gradient_checker.cc

        const T& value, const bool expand_by_row) {
      (*jacobian)(row, col) = JAC_T{value};
    }
    
    template <typename T, typename JAC_T>
    typename std::enable_if<is_complex<T>::value>::type SetJacobian(
        typename TTypes<JAC_T>::Matrix* jacobian, const int row, const int col,
        const T& value, const bool expand_by_row) {
      (*jacobian)(row, col) = JAC_T{value.real()};
      if (expand_by_row) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top