Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 412 for Computation (0.19 sec)

  1. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h

    // unnecessary cluster recompilations in some common cases.  After the rewrite
    // shown above jit/partially_decluster_pass extracts the actual_size(...)
    // computation to outside the XLA cluster, causing the cluster to be versioned
    // only on the actual size of the XlaDynamicSlice.  This avoids recompilation
    // due to superficial changes that don't affect tensor shapes.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 26 21:01:34 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  2. src/sync/example_test.go

    		go func() {
    			once.Do(onceBody)
    			done <- true
    		}()
    	}
    	for i := 0; i < 10; i++ {
    		<-done
    	}
    	// Output:
    	// Only once
    }
    
    // This example uses OnceValue to perform an "expensive" computation just once,
    // even when used concurrently.
    func ExampleOnceValue() {
    	once := sync.OnceValue(func() int {
    		sum := 0
    		for i := 0; i < 1000; i++ {
    			sum += i
    		}
    		fmt.Println("Computed once:", sum)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 17:45:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/declarations/KotlinDeclarationProviderFactory.kt

     * contextual module to provide declarations differently, such as providing alternative declarations for an outsider module. Some
     * functionality such as package set computation may also depend on the contextual module, as the declaration provider may require
     * additional information not available in the [scope].
     */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_util.cc

          }
        } else if (src_outside_compilation && !dst_outside_compilation) {
          // Case 1b: outside compilation to its XLA computation control edge.
          ReplaceAttr(e->src(), kXlaConnectedToXlaComputationAttrName, true);
        } else if (!src_outside_compilation && dst_outside_compilation) {
          // Case 1b: XLA computation to outside compilation in it control edge.
          ReplaceAttr(e->dst(), kXlaConnectedFromXlaComputationAttrName, true);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. test/escape_level.go

    // errorcheck -0 -m -l
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test indirection level computation in escape analysis.
    
    package escape
    
    var sink interface{}
    
    func level0() {
    	i := 0     // ERROR "moved to heap: i"
    	p0 := &i   // ERROR "moved to heap: p0"
    	p1 := &p0  // ERROR "moved to heap: p1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 03 17:52:06 UTC 2019
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/pjrt_compile_util.h

    // OpKernelContext in the above function.
    // - `device`: the device used to compile the function.
    // - `rm`: the resource manager for DeviceCompiler to store JIT-compiled XLA
    // computation.
    // - `flr`: the FunctionLibraryRuntime for the `function`.
    Status CompileToPjRtLoadedExecutable(
        const DeviceBase* device, const XlaPlatformInfo& platform_info,
        const NameAttrList& function,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/quantize_patterns.td

    // point constant.
    def : Pat<(TFL_DequantizeOp
                 (TFL_QuantizeOp (Arith_ConstantOp F32ElementsAttr:$cst), $qt)),
              (TFL_ConstOp $cst)>;
    
    // Transpose conv supports hybrid computation with quantized weights.
    def FoldQuantWeightsIntoTposeConv : Pat<
      (TFL_TransposeConvOp
        $output_shape,
        (TFL_DequantizeOp $quant_weights),
        $quant_input,
        $bias, $padding, $stride_h, $stride_w, $faf),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:10:13 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. pkg/lazy/lazy.go

    // The concepts and code are heavily influenced by https://cs.opensource.google/go/go/+/go1.19:src/sync/once.go.
    package lazy
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // Lazy represents a value whose computation is deferred until the first access
    type Lazy[T any] interface {
    	// Get returns the value, computing it if necessary.
    	Get() (T, error)
    }
    
    type lazyImpl[T any] struct {
    	getter func() (T, error)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 17 22:54:10 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/reduce_while_operands.mlir

    //   S = (1, 0, 0)
    //   whlie (S[2] < 3) {
    //     s0 = S[0] * 2
    //     s1 = S[0] + S[1]
    //     s2 = S[2] + 1
    //     S = (s0, s1, s2)
    //   }
    //   return S[2]
    // }
    //
    // Since only S[2] is returned and the computation of final S[2] does not depend
    // on S[0] and S[1]. The func can be optimized to
    //
    // func increase_3rd_operand_3_times():
    //   s2 = 0
    //   whlie (s2 < 3) {
    //     s2 = s2 + 1
    //   }
    //   return s2
    // }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 14:24:59 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/tape.h

      // `forward_function` is null, a GradientTape is used on the backward function
      // to compute the jvp, which will waste computation when executing eagerly.
      //
      // Unlike GradientTape::RecordOperation, Accumulate runs gradient computation
      // immediately. It stores the results, which feed into Accumulate for future
      // operations and may be fetched by calling FetchJVP. ForwardAccumulator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
Back to top