Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,124 for func4 (0.04 sec)

  1. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

          builder.getFunctionType(input_types, return_types);
    
      std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_);
    
      func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(),
                                                   function_name, function_type);
      new_func.setVisibility(func::FuncOp::Visibility::Private);
      new_func.addEntryBlock();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/hoist_invariant_ops.mlir

      func.return  %1 : tensor<*xf32>
    
    }
    
    }
    
    // -----
    
    module attributes {tf_saved_model.semantics} {
    
    // Test not hoisting in TPU functions.
    
    // CHECK-LABEL: func @_tfrt_resource_init
    // CHECK-NEXT: return
    
    // CHECK-LABEL: func private @func2
    func.func private @func2(%arg: tensor<i1>) -> tensor<i32> {
      // CHECK-NOT: tf._TfrtGetResource
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 23:54:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

        // results and arguments.
        llvm::DenseMap<OpValue, int> operand_states_;
        llvm::DenseMap<OpValue, int> result_states_;
      };
    
      func::FuncOp func_;
    
      DeviceTarget target_spec_;
    
      StatesManager states_manager_;
    };
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. src/runtime/metrics_test.go

    type mutex struct {
    	mu sync.Mutex
    }
    
    func (m *mutex) Lock1()   { m.mu.Lock() }
    func (m *mutex) Unlock1() { m.mu.Unlock() }
    func (m *mutex) Lock2()   { m.mu.Lock() }
    func (m *mutex) Unlock2() { m.mu.Unlock() }
    
    type rwmutexWrite struct {
    	mu sync.RWMutex
    }
    
    func (m *rwmutexWrite) Lock1()   { m.mu.Lock() }
    func (m *rwmutexWrite) Unlock1() { m.mu.Unlock() }
    func (m *rwmutexWrite) Lock2()   { m.mu.Lock() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

    LogicalResult ConvertDenseImageWarpFunc::RewriteFunc() {
      func_.eraseBody();
      func_.addEntryBlock();
      func_->setAttr(kTFImplements,
                     StringAttr::get(func_.getContext(), kImageWarping));
    
      OpBuilder builder(func_.getBody());
      auto op = builder.create<CustomOp>(func_.getLoc(),
                                         func_.getFunctionType().getResults(),
                                         func_.getArguments(), kImageWarping,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

     public:
      explicit ConvertEmbeddedLookupFunc(func::FuncOp func) : func_(func) {}
    
      void RewriteFunc() {
        func_->setAttr(kTFImplements,
                       StringAttr::get(func_.getContext(), "embedding_lookup"));
        Value lookup = func_.getArgument(1);
        Value value = func_.getArgument(0);
        auto output_type = func_.getFunctionType().getResult(0);
    
        OpBuilder builder(func_.getBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssagen/nowb.go

    	// acts as the set of marks for the BFS of the call graph.
    	funcs := make(map[*ir.Func]nowritebarrierrecCall)
    	// q is the queue of ODCLFUNC Nodes to visit in BFS order.
    	var q ir.NameQueue
    
    	for _, fn := range typecheck.Target.Funcs {
    		symToFunc[fn.LSym] = fn
    
    		// Make nowritebarrierrec functions BFS roots.
    		if fn.Pragma&ir.Nowritebarrierrec != 0 {
    			funcs[fn] = nowritebarrierrecCall{}
    			q.PushRight(fn.Nname)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/internal/trace/summary_test.go

    	"io"
    	"testing"
    )
    
    func TestSummarizeGoroutinesTrace(t *testing.T) {
    	summaries := summarizeTraceTest(t, "testdata/tests/go122-gc-stress.test").Goroutines
    	var (
    		hasSchedWaitTime    bool
    		hasSyncBlockTime    bool
    		hasGCMarkAssistTime bool
    	)
    
    	assertContainsGoroutine(t, summaries, "runtime.gcBgMarkWorker")
    	assertContainsGoroutine(t, summaries, "main.main.func1")
    
    	for _, summary := range summaries {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. pkg/log/default_test.go

    			pat: timePattern + "\twarn\tHello",
    		},
    		{
    			f:   func() { Warnf("Hello") },
    			pat: timePattern + "\twarn\tHello",
    		},
    		{
    			f:   func() { Warnf("%s", "Hello") },
    			pat: timePattern + "\twarn\tHello",
    		},
    
    		{
    			f:   func() { Error("Hello") },
    			pat: timePattern + "\terror\tHello",
    		},
    		{
    			f:   func() { Errorf("Hello") },
    			pat: timePattern + "\terror\tHello",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

      ModuleOp module = getOperation();
      auto& side_effect_analysis = getAnalysis<TF::SideEffectAnalysis>();
      SmallVector<func::FuncOp> funcs(module.getOps<func::FuncOp>());
      int func_count = -1;
      for (auto func : funcs) {
        const auto& info = side_effect_analysis.GetAnalysisForFunc(func);
        for (auto& block : func) {
          OpBuilder builder = OpBuilder::atBlockBegin(&block);
          RaiseTargetSubgraphsForBlock(block, builder, module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top