Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for makeChan (0.5 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/c/experimental/gradients/math_grad_test.cc

        std::vector<AbstractTensorHandle*> outputs(2);
        status_ =
            RunModel(MatMulGradModel, immediate_execution_ctx_.get(),
                     {A.get(), B.get()}, absl::MakeSpan(outputs), UseFunction());
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[0], dA_vals[i],
                                                 /*dims*/ {3, 3},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 17:32:14 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc

          const float max_value = max_tensor.scalar<float>()();
          auto histogram_flat = histogram_tensor.flat<int64_t>();
          absl::Span<const int64_t> histogram_data =
              absl::MakeSpan(histogram_flat.data(), histogram_flat.size());
          id_to_collector_[ids_[idx]]->Collect(min_value, max_value,
                                               histogram_data);
        }
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_launch_util_test.cc

      TF_ASSERT_OK_AND_ASSIGN(std::vector<int> constant_input_indices,
                              GetConstantInputIndicesFromContext(context_.get()));
      TF_ASSERT_OK(LockVariables(absl::MakeSpan(variables)));
      TF_ASSERT_OK_AND_ASSIGN(
          std::vector<XlaCompiler::Argument> args,
          XlaComputationLaunchContext::BuildXlaCompilerArguments(
              constant_input_indices, inputs, variables,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/function.cc

      Flatten(value, &args);
      std::vector<AbstractTensorHandle*> outs(
          GetFlatSize(concrete_fn.output_signature));
      TF_RETURN_IF_ERROR(
          ExecuteFunction(concrete_fn.trace, ctx, args, absl::MakeSpan(outs)));
      auto cleanup_tensors = absl::MakeCleanup([outs]() {
        for (auto t : outs) {
          t->Unref();
        }
      });
      return Unflatten(outs, concrete_fn.output_signature);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 04 19:49:06 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/nn_grad_test.cc

        Y.reset(Y_raw);
      }
    
      std::vector<AbstractTensorHandle*> outputs(1);
      status_ = RunModel(ReluGradModel, immediate_execution_ctx_.get(), {Y.get()},
                         absl::MakeSpan(outputs), UseFunction());
      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[0], {0.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/variable_info_util.cc

      std::vector<VariableInfo*> variable_ptrs;
      variable_ptrs.reserve(variables.size());
      for (auto& var : variables) {
        variable_ptrs.push_back(&var);
      }
      return LockVariables(absl::MakeSpan(variable_ptrs));
    }
    
    Status SnapshotResourceVariables(OpKernelContext* ctx,
                                     absl::Span<const int> variable_indices,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top