Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for func_20 (0.22 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

     private:
      void runOnOperation() override;
    };
    
    void ConvertXlaCallModuleOpToBfloat16Pass::runOnOperation() {
      Operation* func_op = getOperation();
      SymbolTableCollection symbol_table;
      OpBuilder builder(&getContext());
    
      auto result = func_op->walk([&](TF::XlaCallModuleOp op) {
        // Converts the serialized StableHLO module to bfloat16.
        auto result =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

        return false;
      }
      return true;
    }
    
    void VerifyTFXLALegalization::runOnOperation() {
      Operation* func_op = getOperation();
      ConversionTarget default_conversion_target =
          GetDefaultLegalConversionTargets(getContext(), legalize_chlo_);
    
      bool has_invalid_ops = false;
      func_op->walk([&](Operation* op) {
        if (!IsMhloAndStatic(op)) {
          has_invalid_ops = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/go/doc/example_test.go

    	type2     int
    
    	Embed struct { Type1 }
    	Uembed struct { type2 }
    )
    
    func Func1()     {}
    func Func1_Foo() {}
    func Func1_foo() {}
    func func2()     {}
    
    func (Type1) Func1() {}
    func (Type1) Func1_Foo() {}
    func (Type1) Func1_foo() {}
    func (Type1) func2() {}
    
    func (type2) Func1() {}
    
    type (
    	Conflict          int
    	Conflict_Conflict int
    	Conflict_conflict int
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

        return failure();
      }
    
      // Fetch all VarHandleOp.
      llvm::StringSet<> variable_names;
      llvm::SmallVector<TF::VarHandleOp, 4> var_ops;
      for (auto func_op : module.getOps<func::FuncOp>()) {
        for (auto var_handle_op : func_op.getOps<TF::VarHandleOp>()) {
          auto variable_name = GetVariableName(var_handle_op);
          if (variable_names.count(variable_name)) continue;
          var_ops.emplace_back(var_handle_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

      SmallVector<int64_t, 1> layer_norm_size_values_;
    };
    
    LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op,
                                        OpBuilder* builder);
    
    LogicalResult ConvertKerasLSTMLayer(mlir::func::FuncOp func_op,
                                        OpBuilder* builder, bool indy);
    
    }  // end namespace TFL
    }  // end namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

      assert(cost_map_.count(op) > 0);
      return cost_map_.lookup(op);
    }
    
    void CostAnalysis::AnalyzeArguments(mlir::func::FuncOp func_op) {
      // Use the max size among function inputs as the default size of dynamic
      // shaped tensors in the function.
      for (auto arg : func_op.getArguments()) {
        if (!mlir::isa<mlir::TensorType>(arg.getType())) continue;
        auto type = mlir::cast<mlir::TensorType>(arg.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

      }
    
      return success();
    }
    
    void LiftHashTableOpsAsArgsPass::runOnOperation() {
      auto module_op = getOperation();
    
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        if (failed(LiftHashTableOpsToArguments(module_op, func_op))) {
          signalPassFailure();
          return;
        }
      }
    }
    
    static PassRegistration<LiftHashTableOpsAsArgsPass> pass;
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top