Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for makeChan (0.81 sec)

  1. tensorflow/c/eager/gradients_test.cc

      s = RegisterGradients(&registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto tape = std::make_unique<Tape>(/*persistent=*/false);
      s = Execute(check_numerics_op.get(), ctx.get(), absl::MakeSpan(outputs),
                  &num_retvals, &forward_op, tape.get(), registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      string read_message;
      s = forward_op.attrs.Get("message", &read_message);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/grad_test_helper.cc

        double abs_error) {
      auto num_inputs = inputs.size();
      std::vector<AbstractTensorHandle*> outputs(num_inputs);
      auto s = RunModel(grad_model, ctx, inputs, absl::MakeSpan(outputs),
                        /*use_function=*/use_function);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      for (int i = 0; i < num_inputs; ++i) {
        if (!outputs[i]) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/unified_api_testutil.cc

          std::vector<AbstractTensorHandle*> model_outputs;
          model_outputs.resize(outputs.size());
          TF_RETURN_IF_ERROR(model(func_ctx.get(), absl::MakeSpan(func_inputs),
                                   absl::MakeSpan(model_outputs)));
          for (auto func_input : func_inputs) {
            func_input->Unref();
          }
          AbstractFunction* func = nullptr;
          OutputList output_list;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 13:57:45 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

      ImmediateOpPtr function_op;
      TF_RETURN_IF_ERROR(func->MakeCallOp({}, &function_op));
    
      AbstractTensorHandle* dummy_output = nullptr;
      int num_retvals = 1;
      TF_RETURN_IF_ERROR(function_op->Execute(
          absl::MakeSpan(&dummy_output, num_retvals), &num_retvals));
      AbstractTensorHandlePtr owned_dummy_output(dummy_output);
      return Status();
    }
    
    }  // namespace
    
    RestoredResource::RestoredResource(const std::string& device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_compile_on_demand_op.cc

          GatherVariableInfo(ctx, *result, 0);
      TF_RETURN_IF_ERROR(variable_infos.status());
      TF_RETURN_IF_ERROR(LockVariables(absl::MakeSpan(*variable_infos)));
      TF_RETURN_IF_ERROR(launch_context.PopulateOutputs(
          ctx, result, execution_output.ConsumeResult(),
          /*missing_ctx_input_prefix=*/0, absl::MakeSpan(*variable_infos),
          input_output_alias, snapshot_ptrs));
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/kernels/xla_ops.cc

      OP_REQUIRES_OK(ctx, variable_infos.status());
      OP_REQUIRES_OK(ctx, LockVariables(absl::MakeSpan(*variable_infos)));
      OP_REQUIRES_OK(
          ctx,
          launch_context.PopulateOutputs(
              ctx, closure.compilation_result(), execution_output->ConsumeResult(),
              /*missing_ctx_input_prefix=*/closure.num_constant_args(),
              absl::MakeSpan(*variable_infos), input_output_alias, snapshot_ptrs));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. src/internal/fmtsort/sort_test.go

    				return fmt.Sprintf("CHAN%d", i)
    			}
    		}
    		return "CHAN???"
    	default:
    		return fmt.Sprint(key)
    	}
    }
    
    var (
    	ints  [3]int
    	chans = makeChans()
    	pin   runtime.Pinner
    )
    
    func makeChans() []chan int {
    	cs := []chan int{make(chan int), make(chan int), make(chan int)}
    	// Order channels by address. See issue #49431.
    	for i := range cs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/io_ops.cc

      TF_RETURN_IF_ERROR(op_ptr->AddInput(shape_and_slices));
      TF_RETURN_IF_ERROR(op_ptr->AddInputList(tensors));
      int num_retvals = 0;
      std::vector<AbstractTensorHandle*> dummy_outputs;
      return op_ptr->Execute(absl::MakeSpan(dummy_outputs), &num_retvals);
    }
    
    }  // namespace ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  9. istioctl/pkg/multixds/gather.go

    	}
    	if len(pods) == 0 {
    		return nil, ControlPlaneNotFoundError{istioNamespace}
    	}
    
    	responses := []*discovery.DiscoveryResponse{}
    	xdsOpts := clioptions.CentralControlPlaneOptions{
    		XDSSAN:  makeSan(istioNamespace, kubeClient.Revision()),
    		CertDir: centralOpts.CertDir,
    		Timeout: centralOpts.Timeout,
    	}
    	dialOpts, err := xds.DialOptions(xdsOpts, istioNamespace, tokenServiceAccount, kubeClient)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 08 08:38:19 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/custom_gradient_test.cc

      // tape.watch(x)
      // y = exp(x)
      // outputs = tape.gradient(y, x)
      std::vector<AbstractTensorHandle*> outputs(1);
      Status s = RunModel(ExpWithPassThroughGrad, ctx.get(), {x.get()},
                          absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      TF_Tensor* result_tensor;
      s = GetValue(outputs[0], &result_tensor);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top