Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 747 for setcontext (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

              .getOperation();
      MLIRContext* context = launch_op.getContext();
      op->removeAttr(StringAttr::get(context, kDeviceAttr));
      op->moveBefore(return_op);
    }
    
    void DeviceAttributeToLaunch::runOnOperation() {
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
    
      getOperation().walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

      }
      inline TFL::ConstBytesAttr CustomOption(OpBuilder* builder,
                                              const std::string& content) {
        return TFL::ConstBytesAttr::get(builder->getContext(),
                                        StringRef(content.data(), content.size()));
      }
    
      std::vector<int64_t> FlatbufferVecToMlirVec(const flexbuffers::Vector& vec) {
        std::vector<int64_t> temp(vec.size(), 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast_go118.go

    // license that can be found in the LICENSE file.
    
    //go:build !compiler_bootstrap
    
    package main
    
    import (
    	"go/ast"
    	"go/token"
    )
    
    func (f *File) walkUnexpected(x interface{}, context astContext, visit func(*File, interface{}, astContext)) {
    	switch n := x.(type) {
    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    		panic("unexpected type")
    
    	case *ast.IndexListExpr:
    		f.walk(&n.X, ctxExpr, visit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 730 bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/shape_inference.cc

        if (!status.ok()) {
          VLOG(1) << "Shape inference failed for node " << n->name() << ": "
                  << status;
        } else {
          shape_inference::InferenceContext* context = shape_refiner->GetContext(n);
          for (int i = 0; i < n->num_outputs(); i++) {
            shape_inference::ShapeHandle handle = context->output(i);
            VLOG(4) << "Output " << i << " for node " << n->name() << ": "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

    func::FuncOp CreateSessionInitFunc(ModuleOp module) {
      constexpr char kSessionInitFuncName[] = "SessionInitializerFunction";
    
      mlir::OpBuilder builder(module.getBodyRegion());
      auto func_type =
          FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{});
      auto func = builder.create<func::FuncOp>(module->getLoc(),
                                               kSessionInitFuncName, func_type);
      func->setAttr(kTfSavedModelExportedNamesAttr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.cc

      // `tf.Const`->`tf.Cast` patterns after variable freezing. The TF shape
      // inference pass is also required to resolve unknown shapes in the TF dialect
      // after variable freezing.
      mlir::PassManager pm(module_op.getContext());
      pm.addPass(mlir::TF::CreateTFShapeInferencePass());
      mlir::odml::AddLegalizeTFToStablehloPasses(pm, /*skip_quantization_ops=*/true,
                                                 /*skip_resize=*/false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 10:49:12 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. pkg/registry/certificates/certificates/strategy_test.go

    			ctx: genericapirequest.NewContext(),
    			obj: &certapi.CertificateSigningRequest{},
    			expectedObj: &certapi.CertificateSigningRequest{
    				Status: certapi.CertificateSigningRequestStatus{Conditions: []certapi.CertificateSigningRequestCondition{}},
    			},
    		},
    		"user in context, no user in obj": {
    			ctx: genericapirequest.WithUser(
    				genericapirequest.NewContext(),
    				&user.DefaultInfo{
    					Name:   "bob",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

          Class<? super @NonNull E> type, E[] emptyArrayForContents, Iterable<? extends E> contents) {
        List<E> setContents = new ArrayList<>();
        for (E e : contents) {
          if (!setContents.contains(e)) {
            setContents.add(e);
          }
        }
        return new MinimalSet<>(type, setContents.toArray(emptyArrayForContents));
      }
    
      private MinimalSet(Class<? super @NonNull E> type, E... contents) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

          Class<? super @NonNull E> type, E[] emptyArrayForContents, Iterable<? extends E> contents) {
        List<E> setContents = new ArrayList<>();
        for (E e : contents) {
          if (!setContents.contains(e)) {
            setContents.add(e);
          }
        }
        return new MinimalSet<>(type, setContents.toArray(emptyArrayForContents));
      }
    
      private MinimalSet(Class<? super @NonNull E> type, E... contents) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc

            q_op, q_op.getResult().getType(), q_op.getArg());
        return success();
      }
    };
    
    void PostQuantizePass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
      func::FuncOp func = getOperation();
      MLIRContext* ctx = func.getContext();
      // TODO: b/307463853 - Consider splitting passes for each pattern set.
      patterns.add<FoldTrivalRequantizeOp<quantfork::QuantizeCastOp>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top