Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 650 for _kernel (0.16 sec)

  1. src/runtime/vdso_freebsd.go

    // license that can be found in the LICENSE file.
    
    //go:build freebsd
    
    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    const _VDSO_TH_NUM = 4 // defined in <sys/vdso.h> #ifdef _KERNEL
    
    var timekeepSharedPage *vdsoTimekeep
    
    //go:nosplit
    func (bt *bintime) Add(bt2 *bintime) {
    	u := bt.frac
    	bt.frac += bt2.frac
    	if u > bt.frac {
    		bt.sec++
    	}
    	bt.sec += bt2.sec
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

            self._bias = None
            if bias_shape is not None:
              self._bias = array_ops.constant(
                  np.random.uniform(size=bias_shape), dtype=dtypes.float32
              )
    
            self._kernel = np.random.uniform(size=y_shape).astype('f4')
            self._min = (-0.8, -0.8, -0.9)
            self._max = (0.9, 0.9, 1.0)
    
          @def_function.function(
              input_signature=[
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. tensorflow/cc/framework/cc_ops_test.cc

      auto add = Add(root.WithKernelLabel("AddWithKernelLabel"), 1.0f, 2.0f);
      TF_EXPECT_OK(root.status());
      AttrSlice attrs = add.z.op().node()->attrs();
      const auto* kernel_attr = attrs.Find("_kernel");
      ASSERT_TRUE(kernel_attr);
      TF_EXPECT_OK(AttrValueHasType(*kernel_attr, "string"));
      EXPECT_EQ(kernel_attr->s(), "AddWithKernelLabel");
    }
    
    TEST(CCOpTest, ColocateWith) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/scope.h

      /// of setting the status on the scope.
      Scope ExitOnError() const;
    
      /// Return a new scope. All ops created with the new scope will have
      /// kernel_label as the value for their '_kernel' attribute;
      Scope WithKernelLabel(const string& kernel_label) const;
    
      // The following functions are for scope object consumers.
    
      /// Return a unique name, using default_name if an op name has not been
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/scope.cc

      for (const auto& op : impl()->control_deps_) {
        control_inputs.push_back(op.node());
      }
      builder->ControlInputs(control_inputs);
    
      if (!impl()->kernel_label_.empty()) {
        builder->Attr("_kernel", impl()->kernel_label_);
      }
    
      if (!impl()->colocation_constraints_.empty()) {
        std::vector<string> constraints(impl()->colocation_constraints_.begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            self._bias = None
            if bias_shape is not None:
              self._bias = array_ops.constant(
                  np.random.uniform(size=bias_shape), dtype=dtypes.float32
              )
    
            self._kernel = np.random.uniform(size=y_shape).astype('f4')
            self._min = (-0.8, -0.8, -0.9)
            self._max = (0.9, 0.9, 1.0)
    
          @def_function.function(
              input_signature=[
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. tensorflow/c/kernels.cc

          c_kernel_ =
              (*create_func)(reinterpret_cast<TF_OpKernelConstruction*>(ctx));
        } else {
          c_kernel_ = nullptr;
        }
      }
    
      void Compute(OpKernelContext* ctx) override {
        (*compute_func_)(c_kernel_, reinterpret_cast<TF_OpKernelContext*>(ctx));
      }
    
      ~COpKernel() override {
        if (delete_func_ != nullptr) {
          (*delete_func_)(c_kernel_);
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  8. tensorflow/c/kernels.h

    // Plugin should implement TF_InitKernel to register kernels. This function
    // should register all kernels in a plugin.
    void TF_InitKernel();
    
    // Allocates a new kernel builder and returns a pointer to it.
    //
    // If non-null, TensorFlow will call create_func when it needs to instantiate
    // the kernel. The pointer returned by create_func will be passed to
    // compute_func and delete_func, thereby functioning as a "this" pointer for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:46:22 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_kernel_creator.cc

      *kernel = std::make_unique<XlaLocalLaunchBase>(
          &construction, constant_arg_indices, resource_arg_indices, function,
          /*has_ref_vars=*/false);
      return s;
    }
    
    Status XlaKernelCreator::CreateKernel(
        FunctionLibraryRuntime* flr,
        const std::shared_ptr<const NodeProperties>& props,
        std::unique_ptr<OpKernel>* kernel) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 22:24:01 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_device_ops.h

    #include "tensorflow/core/kernels/data/iterator_ops.h"
    #include "tensorflow/core/kernels/data/optional_ops.h"
    #include "tensorflow/core/kernels/data/options_dataset_op.h"
    #include "tensorflow/core/kernels/data/prefetch_dataset_op.h"
    #include "tensorflow/core/kernels/fifo_queue.h"
    #include "tensorflow/core/kernels/function_ops.h"
    #include "tensorflow/core/kernels/identity_op.h"
    #include "tensorflow/core/kernels/resource_variable_ops.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 23 19:28:25 UTC 2021
    - 17.1K bytes
    - Viewed (0)
Back to top