Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for _kernel (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        y_shape = [v if v is not None else n for v in shapes[1]]
    
        class MatmulModel(module.Module):
    
          def __init__(self, bias: Optional[core.Tensor]):
            self._bias = bias
            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: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

      }
      tensorflow::OpKernel* op_kernel_raw;
      status = params_.function_library->CreateKernel(props, &op_kernel_raw);
      if (!status.ok()) {
        return op_->emitRemark()
               << "failed to create tf2xla kernel: " << status.ToString();
      }
      // Transfer ownership of the kernel to a local smart pointer.
      auto op_kernel = absl::WrapUnique(op_kernel_raw);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/sys/cpu/cpu_linux_arm64.go

    		// When this happens, we have two options. If the Linux kernel is new
    		// enough (4.11+), we can read the arm64 registers directly which'll
    		// trap into the kernel and then return back to userspace.
    		//
    		// But on older kernels, such as Linux 4.4.180 as used on many Synology
    		// devices, calling readARM64Registers (specifically getisar0) will
    		// cause a SIGILL and we'll die. So for older kernels, parse /proc/cpuinfo
    		// instead.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

          llvm::MemoryBuffer::getMemBuffer(mlir_input, "test_ir"), llvm::SMLoc());
    
      // Parse a kernel source code into the MLIR Module.
      mlir::OwningOpRef<mlir::ModuleOp> module(
          mlir::parseSourceFile<mlir::ModuleOp>(source_mgr, &context));
      CHECK(module) << "failed to parse mlir module";
    
      // Collect all diagnostics emitted while lowering parsed kernel module.
      std::string diagnostic_str;
      llvm::raw_string_ostream os(diagnostic_str);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. cmd/server-rlimit.go

    import (
    	"runtime"
    	"runtime/debug"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3/kernel"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v3/sys"
    )
    
    func oldLinux() bool {
    	currentKernel, err := kernel.CurrentVersion()
    	if err != nil {
    		// Could not probe the kernel version
    		return false
    	}
    
    	if currentKernel == 0 {
    		// We could not get any valid value return false
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/internal/cpu/cpu_arm64_hwcap.go

    	// check the AUXV for the CPUID bit. The getMIDR function executes an
    	// instruction which would normally be an illegal instruction, but it's
    	// trapped by the kernel, the value sanitized and then returned.
    	// Without the CPUID bit the kernel will not trap the instruction and the
    	// process will be terminated with SIGILL.
    	if ARM64.HasCPUID {
    		midr := getMIDR()
    		part_num := uint16((midr >> 4) & 0xfff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top