Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for idioms (0.19 sec)

  1. src/cmd/compile/internal/ssa/loopbce.go

    				min:   min,
    				max:   max,
    				entry: b.Succs[0].b,
    				flags: flags,
    			})
    			b.Logf("found induction variable %v (inc = %v, min = %v, max = %v)\n", ind, inc, min, max)
    		}
    
    		// TODO: other unrolling idioms
    		// for i := 0; i < KNN - KNN % k ; i += k
    		// for i := 0; i < KNN&^(k-1) ; i += k // k a power of 2
    		// for i := 0; i < KNN&(-k) ; i += k // k a power of 2
    	}
    
    	return iv
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. src/regexp/onepass.go

    					continue
    				}
    				return nil
    			}
    		}
    	}
    	// Creates a slightly optimized copy of the original Prog
    	// that cleans up some Prog idioms that block valid onepass programs
    	p = onePassCopy(prog)
    
    	// checkAmbiguity on InstAlts, build onepass Prog if possible
    	p = makeOnePass(p)
    
    	if p != nil {
    		cleanupOnePass(p, prog)
    	}
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. doc/go_mem.html

    }
    
    func main() {
    	go f()
    	g()
    }
    </pre>
    
    <p>
    it can happen that <code>g</code> prints <code>2</code> and then <code>0</code>.
    </p>
    
    <p>
    This fact invalidates a few common idioms.
    </p>
    
    <p>
    Double-checked locking is an attempt to avoid the overhead of synchronization.
    For example, the <code>twoprint</code> program might be
    incorrectly written as:
    </p>
    
    <pre>
    var a string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/link.go

    	InParallel    bool // parallel backend phase in effect
    	UseBASEntries bool // use Base Address Selection Entries in location lists and PC ranges
    	IsAsm         bool // is the source assembly language, which may contain surprising idioms (e.g., call tables)
    	Std           bool // is standard library package
    
    	// state for writing objects
    	Text []*LSym
    	Data []*LSym
    
    	// Constant symbols (e.g. $i64.*) are data symbols created late
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_test_util.cc

      constexpr int64_t dims[] = {100, 100};
      constexpr int num_elements = dims[0] * dims[1];
      float data[num_elements];
      for (int i = 0; i < num_elements; ++i) {
        data[i] = 1.0f;
      }
      TF_Status* status = TF_NewStatus();
      TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_FLOAT, &dims[0],
                                            sizeof(dims) / sizeof(int64_t), status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/dom_test.go

    	c := testConfig(t)
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Exit("mem")))
    
    	doms := map[string]string{}
    
    	CheckFunc(fun.f)
    	verifyDominators(t, fun, dominators, doms)
    	verifyDominators(t, fun, dominatorsSimple, doms)
    
    }
    
    func TestDominatorsSimple(t *testing.T) {
    	c := testConfig(t)
    	fun := c.Fun("entry",
    		Bloc("entry",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. OWNERS_ALIASES

        - mikedanese
      sig-auth-authorizers-reviewers:
        - deads2k
        - dims
        - enj
        - liggitt
        - mikedanese
        - ncdc
        - smarterclayton
        - sttts
        - thockin
        - wojtek-t
      sig-auth-certificates-approvers:
        - liggitt
        - mikedanese
        - smarterclayton
      sig-auth-certificates-reviewers:
        - deads2k
        - dims
        - enj
        - liggitt
        - mikedanese
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 23:08:03 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. tensorflow/c/tf_tensor.cc

      static char empty;
      int64_t nelems = 1;
      std::vector<int64_t> dims;
      auto shape_dims = shape.dims();
      dims.reserve(shape_dims);
      for (int i = 0; i < shape_dims; ++i) {
        dims.push_back(shape.dim_size(i));
        nelems *= shape.dim_size(i);
      }
      CHECK_EQ(nelems, 0);
      return TF_NewTensor(
          dtype, reinterpret_cast<const int64_t*>(dims.data()), shape.dims(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/defer_activation_transpose.mlir

      %1 = stablehlo.transpose %arg0, dims = [0, 3, 1, 2] : (tensor<1x3x3x4xf32>) -> tensor<1x4x3x3xf32>
      %2 = stablehlo.add %1, %0 : tensor<1x4x3x3xf32>
      return %2 : tensor<1x4x3x3xf32>
    }
    // CHECK-SAME: (%[[ARG_0:.+]]: tensor<1x3x3x4xf32>) -> tensor<1x4x3x3xf32>
    // CHECK-DAG: %[[CONST_0:.+]] = stablehlo.constant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/tests/pipelines/process_nchw_tensor.mlir

    // CHECK-DAG: %[[BIAS_CONST:.+]] = stablehlo.constant {{.*}} : tensor<4xf32>
    // CHECK-DAG: %[[BROADCAST_IN_DIM:.+]] = stablehlo.broadcast_in_dim %[[BIAS_CONST]], dims = [1] : (tensor<4xf32>) -> tensor<1x4x5x5xf32>
    // CHECK-DAG: %[[TRANSPOSE_0:.+]] = stablehlo.transpose %[[ARG]], dims = [0, 2, 3, 1] : (tensor<1x2x5x5xf32>) -> tensor<1x5x5x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top