Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for func_0 (0.08 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

    // function.
    bool ShouldIncludeInMainFunction(func::FuncOp func_op) {
      return !func_op.isPrivate() && IsExported(func_op) &&
             IsEntryFunction(func_op);
    }
    
    // Sets a function to be private so it can be referred internally.
    void SetFunctionPrivate(func::FuncOp func) {
      func.setVisibility(SymbolTable::Visibility::Private);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

          getAnalysis<TF::ResourceAliasAnalysis>();
    
      llvm::SmallDenseMap<func::FuncOp, PerFunctionResult, 4> per_function_results;
      llvm::SetVector<func::FuncOp> worklist;
      for (auto func_op : module.getOps<func::FuncOp>()) {
        worklist.insert(func_op);
        per_function_results.try_emplace(
            func_op, func_op, resource_alias_analysis.GetAnalysisForFunc(func_op));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      Value input = func_op.getArgument(0);
      Value output_init_state = func_op.getArgument(1);
      Value hidden_init_state = func_op.getArgument(2);
      Value weight_kernel = func_op.getArgument(3);
      Value recurrent_kernel = func_op.getArgument(4);
      Value bias = func_op.getArgument(5);
    
      // The func op should have 5 outputs.
      if (func_op.getNumResults() != 5) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

    #define DEBUG_TYPE "quantization-context"
    
    namespace mlir {
    namespace quant {
    
    QuantizeContext::QuantizeContext(func::FuncOp func, const DeviceTarget &spec)
        : func_(func), target_spec_(spec) {
      llvm::DenseMap<Value, int> value_to_state;
      func.walk([&](quantfork::QuantizeRegionOp op) {
        for (int i = 0, e = op.getNumOperands(); i != e; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        // Builder builder(func_op.getContext());
        func_op->setAttr(
            kTfInputShapesAttr,
            ArrayAttr::get(func_op.getContext(), updated_input_shapes_attr));
      }
    }
    
    // Validates func ops. Returns `failure` if the function is invalid.
    LogicalResult ValidateFuncOp(func::FuncOp func_op) {
      auto input_shapes_attr =
          func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/func.go

    }
    func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
    	return f.constVal(OpConst32, t, int64(c), true)
    }
    func (f *Func) ConstInt64(t *types.Type, c int64) *Value {
    	return f.constVal(OpConst64, t, c, true)
    }
    func (f *Func) ConstFloat32(t *types.Type, c float64) *Value {
    	return f.constVal(OpConst32F, t, int64(math.Float64bits(float64(float32(c)))), true)
    }
    func (f *Func) ConstFloat64(t *types.Type, c float64) *Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/func.go

    // (Call typecheck.Func instead.)
    func tcFunc(n *ir.Func) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcFunc", n)(nil)
    	}
    
    	if name := n.Nname; name.Typecheck() == 0 {
    		base.AssertfAt(name.Type() != nil, n.Pos(), "missing type: %v", name)
    		name.SetTypecheck(1)
    	}
    }
    
    // tcCall typechecks an OCALL node.
    func tcCall(n *ir.CallExpr, top int) ir.Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      auto func_op = module_op->lookupSymbol<func::FuncOp>("unknown_rank_arg");
      ASSERT_THAT(func_op, NotNull());
      ASSERT_THAT(func_op.getNumArguments(), Eq(1));
    
      EXPECT_FALSE(HasRankOf(func_op.getArgument(0), /*rank=*/1));
    }
    
    TEST_F(AttrsAndConstraintsTest, TryCastSucceeds) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleStatic);
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/subst.go

    		}
    	}
    	return
    }
    
    func (subst *subster) func_(f *Func) *Func {
    	if f != nil {
    		if typ := subst.typ(f.typ); typ != f.typ {
    			return substFunc(f, typ)
    		}
    	}
    	return f
    }
    
    func substFunc(f *Func, typ Type) *Func {
    	copy := *f
    	copy.typ = typ
    	copy.origin = f.Origin()
    	return &copy
    }
    
    func (subst *subster) funcList(in []*Func) (out []*Func, copied bool) {
    	out = in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc

        func_pm.addPass(mlir::TFTPU::CreateTPUHostComputationExpansionPass());
        func_pm.addPass(mlir::TFTPU::CreateTPUUpdateEmbeddingEnqueueOpInputsPass());
      }
    
      // TODO(b/173622615): Once OutsideCompilation is represented by launch op and
      // the remaining passes including Inliner support it, remove this
      // LaunchToDeviceAttributePass. This LaunchToDeviceAttribute pass needs to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 16:09:14 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top