Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 126 for func_20 (0.55 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

      explicit ConvertFuncToBfloat16Pass() = default;
    
     private:
      void runOnOperation() override;
    };
    
    void ConvertFuncToBfloat16Pass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      MLIRContext* context = func_op.getContext();
      RewritePatternSet patterns(context);
    
      BFloat16TypeConverter converter;
      patterns.add<BFloat16TypePattern, BitcastConvertOpPattern>(converter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

              }
            }
          }
        });
      }
      // Remove `kSkipIslandOutlining` attributes.
      for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) {
        if (func_op->hasAttr(mlir::TF::kSkipIslandOutlining)) {
          func_op->removeAttr(mlir::TF::kSkipIslandOutlining);
        }
      }
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.h

    // Adds a new input name to the `inputs` field of the `tf.entry_function`
    // attribute if the attribute exist in the given function. Otherwise, no
    // attribute is modified.
    void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc

      pm.addPass(mlir::TFDevice::CreateDecomposeResourceOpsInClusterPass());
      // Encode this in its own scope so that func_pm is not mistakenly used
      // later on.
      {
        OpPassManager& func_pm = pm.nest<FuncOp>();
        func_pm.addPass(mlir::TFTPU::CreateTPUHostComputationExpansionPass());
        func_pm.addPass(mlir::TFTPU::CreateTPUUpdateEmbeddingEnqueueOpInputsPass());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 16:09:14 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. test/newinline.go

    	}
    	bar := func(x int) int { // ERROR "func literal does not escape" "can inline r.func2"
    		return x + func(y int) int { // ERROR "can inline r.func2.1" "can inline r.r.func2.func3"
    			return 2*y + x*z
    		}(x) // ERROR "inlining call to r.func2.1"
    	}
    	return foo(42) + bar(42) // ERROR "inlining call to r.func1" "inlining call to r.func2" "inlining call to r.r.func2.func3"
    }
    
    func s0(x int) int { // ERROR "can inline s0"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

      func::FuncOp func_op = getOperation();
      MLIRContext& ctx = getContext();
    
      RewritePatternSet patterns(&ctx);
      patterns.add<DeferActivationTransposeForAddOp,
                   DeferActivationTransposeForMaxPoolReduceWindowOp,
                   DeferActivationTransposeForMaxOp>(&ctx);
      if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental_test.cc

          : s_(TF_NewStatus()), func_graph_(TF_NewGraph()), func_(nullptr) {}
    
      void SetUp() override {}
    
      ~CApiExperimentalFunctionTest() override {
        TF_DeleteFunction(func_);
        TF_DeleteGraph(func_graph_);
        TF_DeleteStatus(s_);
      }
    
      const char* func_name_ = "MyFunc";
      TF_Status* s_;
      TF_Graph* func_graph_;
      TF_Function* func_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. test/fixedbugs/issue4167.go

    		c++
    	}
    	v = (*p)(&c)
    	return
    }
    
    func (this *pa) func2() p {
    	return (*p).func3(this.func1())
    }
    
    func (this *p) func3(f int) p {
    	return *this
    }
    
    func (this *pa) func2dots() p {
    	return (*p).func3(this.func1())
    }
    
    func (this *p) func3dots(f ...int) p {
    	return *this
    }
    
    func main() {
    	arr := make(pa, 13)
    	length := arr.func2()
    	if int(length) != len(arr) {
    		panic("length != len(arr)")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 876 bytes
    - Viewed (0)
  9. test/typeparam/issue50264.go

    	return nil
    }
    
    type Func2[A1, A2, R any] func(a1 A1, a2 A2) R
    
    func Some[T any](v T) any {
    	_ = Some2[T](v)
    	return NoneType[T]{}.Recover()
    }
    
    //go:noinline
    func Some2[T any](v T) any {
    	return v
    }
    
    type Nil struct{}
    
    type ApplicativeFunctor2[H, HT, A1, A2, R any] struct {
    	h any
    }
    
    func Applicative2[A1, A2, R any](fn Func2[A1, A2, R]) ApplicativeFunctor2[Nil, Nil, A1, A2, R] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 822 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

      // functions and avoid converting ConstOps inside initializer functions.
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        // Do not unfreeze constants under these functions.
        if (func_op.getSymName().contains("while_body")) continue;
        if (func_op.getSymName().contains("while_cond")) continue;
        absl::c_copy_if(func_op.getOps<TF::ConstOp>(),
                        std::back_inserter(target_const_ops),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top