Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for semop (0.04 sec)

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

    			n.SetType(nil)
    			return n
    		}
    		n.SetType(t)
    		n.SetOp(ir.OSLICESTR)
    	} else if t.IsPtr() && t.Elem().IsArray() {
    		tp = t.Elem()
    		n.SetType(types.NewSlice(tp.Elem()))
    		types.CalcSize(n.Type())
    		if hasmax {
    			n.SetOp(ir.OSLICE3ARR)
    		} else {
    			n.SetOp(ir.OSLICEARR)
    		}
    	} else if t.IsSlice() {
    		n.SetType(t)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/pack/pack.go

    // op holds the operation we are doing (prtx).
    // verbose tells whether the 'v' option was specified.
    var (
    	op      rune
    	verbose bool
    )
    
    // setOp parses the operation string (first argument).
    func setOp(arg string) {
    	// Recognize 'go tool pack grc' because that was the
    	// formerly canonical way to build a new archive
    	// from a set of input files. Accepting it keeps old
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/func.go

    	typecheckargs(n)
    	t := l.Type()
    	if t == nil {
    		n.SetType(nil)
    		return n
    	}
    	types.CheckSize(t)
    
    	switch l.Op() {
    	case ir.ODOTINTER:
    		n.SetOp(ir.OCALLINTER)
    
    	case ir.ODOTMETH:
    		l := l.(*ir.SelectorExpr)
    		n.SetOp(ir.OCALLMETH)
    
    		// typecheckaste was used here but there wasn't enough
    		// information further down the call chain to know if we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    			// buffer during conversion. String comparison does not
    			// memorize the strings for later use, so it is safe.
    			if n.X.Op() == ir.OBYTES2STR {
    				n.X.(*ir.ConvExpr).SetOp(ir.OBYTES2STRTMP)
    			}
    			if n.Y.Op() == ir.OBYTES2STR {
    				n.Y.(*ir.ConvExpr).SetOp(ir.OBYTES2STRTMP)
    			}
    
    		case t.IsStruct() || t.IsArray():
    			// for complex comparisons, we need both args to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc

        auto reduce_dim_op = rewriter.create<TFL::ConstOp>(
            bmm_op->getLoc(),
            DenseIntElementsAttr::get(
                RankedTensorType::get({1}, rewriter.getI32Type()), {cY}));
        auto sum_op = rewriter.create<TFL::SumOp>(
            bmm_op->getLoc(), bmm_op.getType(), bmm_op.getY(), reduce_dim_op,
            /*keep_dims=*/rewriter.getBoolAttr(true));
        rewriter.replaceOp(bmm_op, sum_op);
        return success();
      };
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/typecheck.go

    		n.Args = list
    	case *ir.ReturnStmt:
    		n.Results = list
    	case *ir.AssignListStmt:
    		if n.Op() != ir.OAS2FUNC {
    			base.Fatalf("rewriteMultiValueCall: invalid op %v", n.Op())
    		}
    		as.SetOp(ir.OAS2FUNC)
    		n.SetOp(ir.OAS2)
    		n.Rhs = make([]ir.Node, len(list))
    		for i, tmp := range list {
    			n.Rhs[i] = AssignConv(tmp, n.Lhs[i].Type(), "assignment")
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

      auto constant_attr = rewriter->getI64TensorAttr(values);
      return rewriter->create<arith::ConstantOp>(loc, values_type, constant_attr);
    }
    
    // Function to create a tf.SumOp to sum the element in 'value' reduced along the
    // 'redux_axes'.
    TF::SumOp createSumOp(Value value, Location loc,
                          llvm::ArrayRef<int32_t> redux_axes,
                          PatternRewriter* rewriter) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

          CompileTimeConstantOperand<TF::StridedSliceGradOp, 0, 1, 2, 3>,
          // $begin, $end, $strides
          CompileTimeConstantOperand<TF::StridedSliceOp, 1, 2, 3>,
          CompileTimeConstantOperand<TF::SumOp, 1>,  // $reduction_indices
          CompileTimeConstantOperand<TF::TensorArraySplitV3Op, 2>,  // $lengths
          CompileTimeConstantOperand<TF::TensorArrayV3Op, 0>,       // $size
          // $element_shape
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

        TypeID::get<TF::StatefulPartitionedCallOp>(),
        TypeID::get<TF::StopGradientOp>(),
        TypeID::get<TF::StridedSliceOp>(),
        TypeID::get<TF::StridedSliceGradOp>(),
        TypeID::get<TF::SumOp>(),
        TypeID::get<TF::TanhGradOp>(),
        TypeID::get<TF::TensorScatterUpdateOp>(),
        TypeID::get<TF::TileOp>(),
        TypeID::get<TF::TopKV2Op>(),
        TypeID::get<TF::_UnaryOpsCompositionOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/walk/assign.go

    	// same type as the variable on the lhs.
    	if ok := n.Lhs[1]; !ir.IsBlank(ok) && ok.Type().IsBoolean() {
    		call.Type().Field(1).Type = ok.Type()
    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top