Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for retval (0.12 sec)

  1. src/runtime/cgocall.go

    type argset struct {
    	args   unsafe.Pointer
    	retval uintptr
    }
    
    // wrapper for syscall package to call cgocall for libc (cgo) calls.
    //
    //go:linkname syscall_cgocaller syscall.cgocaller
    //go:nosplit
    //go:uintptrescapes
    func syscall_cgocaller(fn unsafe.Pointer, args ...uintptr) uintptr {
    	as := argset{args: unsafe.Pointer(&args[0])}
    	cgocall(fn, unsafe.Pointer(&as))
    	return as.retval
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util.cc

      for (int i = 0, end = ctx->num_outputs(); i < end; ++i) {
        const TensorShape& shape = output_tensor_shapes[i];
        const DataType& type = compilation_result->outputs[i].type;
        VLOG(2) << "Populating output for retval " << i << " shape "
                << shape.DebugString() << " type " << DataTypeString(type);
    
        if (compilation_result->outputs[i].is_constant) {
          TF_RETURN_IF_ERROR(SetOutputForConstant(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/compilability_check_util.cc

        return false;
      }
    
      // _Arg nodes in a top-level function represent feeds and _Retval nodes in a
      // top-level function represent fetches.
      if (stack_depth == 1 &&
          (node.type_string() == "_Arg" || node.type_string() == "_Retval")) {
        absl::string_view uncompilable_reason = "top level _Arg or _Retval";
        MaybeMarkUncompilableNode(uncompilable_reason, *stack_trace,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go

    	SYS_EXEC_SYS_UNREGISTER    = 466 // { int exec_sys_unregister(int id); }
    	SYS_SYS_CHECKPOINT         = 467 // { int sys_checkpoint(int type, int fd, pid_t pid, int retval); }
    	SYS_MOUNTCTL               = 468 // { int mountctl(const char *path, int op, int fd, const void *ctl, int ctllen, void *buf, int buflen); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        Output arg1 = ops::_Arg(s.WithOpName("arg1"), DT_RESOURCE, 1);
        Output arg2 = ops::_Arg(s.WithOpName("arg2"), DT_INT32, 2);
        auto ret0 = ops::_Retval(s.WithOpName("ret0"), arg1, 0);
        auto ret1 = ops::_Retval(s.WithOpName("ret1"), arg0, 1);
        auto ret2 = ops::_Retval(s.WithOpName("ret2"), arg2, 2);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

                                  PatternRewriter &rewriter) {
      if (concat.getVal().size() < 2)
        return rewriter.notifyMatchFailure(
            concat, "Concatenate op should have at least two operands");
    
      auto first = concat.getVal()[0].getDefiningOp<mhlo::SliceOp>();
      auto second = concat.getVal()[1].getDefiningOp<mhlo::SliceOp>();
      if (!first || !second)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. src/go/constant/value.go

    func i64tor(x int64Val) ratVal   { return ratVal{newRat().SetInt64(int64(x))} }
    func i64tof(x int64Val) floatVal { return floatVal{newFloat().SetInt64(int64(x))} }
    func itor(x intVal) ratVal       { return ratVal{newRat().SetInt(x.val)} }
    func itof(x intVal) floatVal     { return floatVal{newFloat().SetInt(x.val)} }
    func rtof(x ratVal) floatVal     { return floatVal{newFloat().SetRat(x.val)} }
    func vtoc(x Value) complexVal    { return complexVal{x, int64Val(0)} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_TensorHandle* retvals[1] = {nullptr};
      int num_retvals = 1;
      TFE_Execute(func, &retvals[0], &num_retvals, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      ASSERT_EQ(1, num_retvals);
      TF_Tensor* t = TFE_TensorHandleResolve(retvals[0], status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_DeleteTensorHandle(retvals[0]);
      float sum = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental_test.cc

        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
        TFE_TensorHandle* retvals[1];
        int num_retvals = 1;
        TFE_Execute(shape_op, &retvals[0], &num_retvals, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
        device_type = TFE_TensorHandleDeviceType(retvals[0], status.get());
        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      add_attrs(g.node());
    
      auto out0 = ops::_Retval(scope.WithOpName("b_identity_0_retval_RetVal"),
                               b_identity, 0);
      auto out1 = ops::_Retval(scope.WithOpName("e_0_retval_RetVal"), e, 1);
      auto out2 = ops::_Retval(scope.WithOpName("g_0_retval_RetVal"), g, 2);
      auto out3 =
          ops::_Retval(scope.WithOpName("readu_0_retval_RetVal"), read_u, 3);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
Back to top