Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for const0_val (0.16 sec)

  1. tensorflow/c/c_api_test.cc

        //        |         |
        //      Const_0    Const_1
        //
        const float const0_val[] = {1.0, 2.0, 3.0, 4.0};
        const float const1_val[] = {1.0, 0.0, 0.0, 1.0};
        TF_Operation* const0 = FloatConst2x2(graph_, s_, const0_val, "Const_0");
        TF_Operation* const1 = FloatConst2x2(graph_, s_, const1_val, "Const_1");
        TF_Operation* matmul = MatMul(graph_, s_, const0, const1, "MatMul");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        auto elem_type = const_val.getElementType();
        Attribute result;
        if (mlir::isa<FloatType>(elem_type)) {
          result = ConstFoldBroadcastInDim<FloatAttr>(result_type, const_val,
                                                      bcast_dims);
        } else if (mlir::isa<IntegerType>(elem_type)) {
          result = ConstFoldBroadcastInDim<IntegerAttr>(result_type, const_val,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    	if c {
    		i = 1
    	}
    	return f.constVal(OpConstBool, t, i, true)
    }
    func (f *Func) ConstInt8(t *types.Type, c int8) *Value {
    	return f.constVal(OpConst8, t, int64(c), true)
    }
    func (f *Func) ConstInt16(t *types.Type, c int16) *Value {
    	return f.constVal(OpConst16, t, int64(c), true)
    }
    func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
    	return f.constVal(OpConst32, t, int64(c), true)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/sccp.go

    func rewireSuccessor(block *Block, constVal *Value) bool {
    	switch block.Kind {
    	case BlockIf:
    		block.removeEdge(int(constVal.AuxInt))
    		block.Kind = BlockPlain
    		block.Likely = BranchUnknown
    		block.ResetControls()
    		return true
    	case BlockJumpTable:
    		// Remove everything but the known taken branch.
    		idx := int(constVal.AuxInt)
    		if idx < 0 || idx >= len(block.Succs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/loopbce.go

    						return false
    					}
    					if inclusive && v != limit.AuxInt || !inclusive && v+1 != limit.AuxInt {
    						// We know a better limit than the programmer did. Use our limit instead.
    						limit = f.constVal(limit.Op, limit.Type, v, true)
    						inclusive = true
    					}
    					return true
    				}
    				if step == 1 && !inclusive {
    					// Can't overflow because maxint is never a possible value.
    					return true
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/rulegen.go

    func genResult0(rr *RuleRewrite, arch arch, result string, top, move bool, pos string, cse map[string]string) string {
    	resname, expr := splitNameExpr(result)
    	result = expr
    	// TODO: when generating a constant result, use f.constVal to avoid
    	// introducing copies just to clean them up again.
    	if result[0] != '(' {
    		// variable
    		if top {
    			// It in not safe in general to move a variable between blocks
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            if (val.getType() == t) return val;
            return rewriter.create<tensor::CastOp>(op.getLoc(), t, val);
          };
          last_val[0] = maybe_cast(const_val, op.getResult(3).getType());
          last_val[1] = maybe_cast(const_val, op.getResult(4).getType());
        }
        rewriter.replaceOp(
            op, {/*x_backprop=*/x_backprop,
                 /*scale_backprop=*/scale_backprop,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top