Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for add_func (0.13 sec)

  1. tensorflow/compiler/jit/compilability_check_util_test.cc

    namespace tensorflow {
    namespace {
    
    AttrValue FuncListAttr(const absl::Span<const char* const> names) {
      AttrValue attr;
      for (const char* name : names) {
        attr.mutable_list()->add_func()->set_name(name);
      }
      return attr;
    }
    
    constexpr char kFunctionalIfNodeName[] = "If";
    constexpr char kFunctionalCaseNodeName[] = "Case";
    constexpr char kFunctionalWhileNodeName[] = "While";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          *list->add_tensor() = tensor;
        } else if (auto attr = mlir::dyn_cast<mlir::FlatSymbolRefAttr>(a)) {
          AttrValue attr_val;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val));
          *list->add_func() = attr_val.func();
        } else if (auto attr = mlir::dyn_cast<mlir::TypeAttr>(a)) {
          AttrValue attr_val;
          // For type attributes, we only propagate the element type.
          mlir::Type elt_type = attr.getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go

    	e := Equalities{}
    	if err := e.AddFuncs(funcs...); err != nil {
    		panic(err)
    	}
    	return e
    }
    
    // AddFuncs is a shortcut for multiple calls to AddFunc.
    func (e Equalities) AddFuncs(funcs ...interface{}) error {
    	for _, f := range funcs {
    		if err := e.AddFunc(f); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // AddFunc uses func as an equality function: it must take
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 20 17:18:42 UTC 2022
    - 10.8K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/tests/function_test.cc

            /*arg=*/{"x"},
            /*attr=*/{{"T", DT_FLOAT}},
            /*dep=*/{},
            /*device=*/"",
            /*name=*/"square"}});
    }
    
    FunctionDef AddFunc() {
      return FunctionDefHelper::Define(
          // Function Name
          "AddFunc",
          // Args
          {"x: float", "y: float"},
          // Returns
          {"z: float"},
          // Attr def
          {},
          // Nodes
          {{/*ret=*/{"z"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library.mlir

          {"quantized_ops": ["${main_op}", "Relu6"], "act_func": "internal_requantize_and_relu6_fn", "output_type": "i8"},
          {"quantized_ops": ["${main_op}"], "act_func": "internal_dequantize_no_activation_fn", "output_type": "f32"},
          {"quantized_ops": ["${main_op}", "Relu"], "act_func": "internal_dequantize_and_relu_fn", "output_type": "f32"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_uniform_quantized.mlir

        parameters[
          {"quantized_ops": ["${main_op}", "BiasAdd"], "act_func": "internal_requantize_no_activation_fn", "output_type": "!tf_type.qint8"},
          {"quantized_ops": ["${main_op}", "BiasAdd", "Relu"], "act_func": "internal_requantize_and_relu_fn", "output_type": "!tf_type.qint8"},
          {"quantized_ops": ["${main_op}", "BiasAdd", "Relu6"], "act_func": "internal_requantize_and_relu6_fn", "output_type": "!tf_type.qint8"},
        ]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 29 01:13:58 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  7. pkg/scheduler/eventhandlers.go

    					return false
    				default:
    					utilruntime.HandleError(fmt.Errorf("unable to handle object in %T: %T", sched, obj))
    					return false
    				}
    			},
    			Handler: cache.ResourceEventHandlerFuncs{
    				AddFunc:    sched.addPodToCache,
    				UpdateFunc: sched.updatePodInCache,
    				DeleteFunc: sched.deletePodFromCache,
    			},
    		},
    	); err != nil {
    		return err
    	}
    	handlers = append(handlers, handlerRegistration)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  8. pkg/proxy/config/config.go

    		listerSynced: endpointSliceInformer.Informer().HasSynced,
    		logger:       klog.FromContext(ctx),
    	}
    
    	_, _ = endpointSliceInformer.Informer().AddEventHandlerWithResyncPeriod(
    		cache.ResourceEventHandlerFuncs{
    			AddFunc:    result.handleAddEndpointSlice,
    			UpdateFunc: result.handleUpdateEndpointSlice,
    			DeleteFunc: result.handleDeleteEndpointSlice,
    		},
    		resyncPeriod,
    	)
    
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/aot/tests/tfcompile_test.cc

      FunctionComp add_fn;
      EXPECT_EQ(add_fn.arg0_data(), add_fn.arg_data(0));
      EXPECT_EQ(add_fn.arg1_data(), add_fn.arg_data(1));
    
      add_fn.arg0() = 1;
      add_fn.arg1() = 2;
      EXPECT_TRUE(add_fn.Run());
      EXPECT_EQ(add_fn.error_msg(), "");
      EXPECT_EQ(add_fn.result0(), 3);
      EXPECT_EQ(add_fn.result0_data()[0], 3);
      EXPECT_EQ(add_fn.result0_data(), add_fn.results()[0]);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
  10. pkg/controller/endpointslice/endpointslice_controller.go

    		AddFunc: c.onServiceUpdate,
    		UpdateFunc: func(old, cur interface{}) {
    			c.onServiceUpdate(cur)
    		},
    		DeleteFunc: c.onServiceDelete,
    	})
    	c.serviceLister = serviceInformer.Lister()
    	c.servicesSynced = serviceInformer.Informer().HasSynced
    
    	podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    c.addPod,
    		UpdateFunc: c.updatePod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top