Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for Vector2 (0.19 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      TensorHandlePtr three_vector =
          VectorFloatTensorHandle({5., 6., 7.}, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      std::vector<TensorHandlePtr> vector_handles;
      vector_handles.reserve(2);
      vector_handles.push_back(std::move(two_vector));
      vector_handles.push_back(std::move(three_vector));
      std::unique_ptr<ParallelTensor> unknown_length_vector =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/tape.h

        : public std::function<Status(const std::vector<Gradient*>&,
                                      std::vector<Gradient*>*, bool)> {
     public:
      template <typename lambda_type>
      explicit ForwardFunction(lambda_type lambda)
          : std::function<Status(const std::vector<Gradient*>&,
                                 std::vector<Gradient*>*, bool)>(lambda) {}
    };
    
    // Computes Jacobian-vector products using forward-mode automatic
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  3. src/archive/tar/tar_test.go

    	f.ops = f.ops[1:]
    	return f.pos, nil
    }
    
    func equalSparseEntries(x, y []sparseEntry) bool {
    	return (len(x) == 0 && len(y) == 0) || reflect.DeepEqual(x, y)
    }
    
    func TestSparseEntries(t *testing.T) {
    	vectors := []struct {
    		in   []sparseEntry
    		size int64
    
    		wantValid    bool          // Result of validateSparseEntries
    		wantAligned  []sparseEntry // Result of alignSparseEntries
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

      if (!status->status.ok()) return;
    
      // Initialize a input_tensor vector with `nullptr` values.
      std::vector<const Tensor*> input_tensors_vector(num_inputs, nullptr);
      // A vector to keep track of newly created `tf::Tensor` objects.
      std::vector<Tensor> all_input_tensors;
      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      Status Shape(const std::vector<int64_t>** shape) const;
      TF_DataType dtype() const { return dtype_; }
    
      // Sets its output argument to a summary of the values of this tensor on every
      // component device.
      Status SummarizeValue(std::string& summary);
    
      std::vector<TensorHandlePtr> release_tensors() { return std::move(tensors_); }
    
      std::vector<TFE_TensorHandle*> tensors() const {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      }
    }
    
    absl::optional<std::vector<std::unique_ptr<ParallelTensor>>>
    ParallelDevice::Join(
        const std::vector<PartialTensorShape>& expected_output_shapes,
        TF_Status* status) const {
      absl::optional<std::vector<std::unique_ptr<ParallelTensor>>> result;
      // Compute per-device per-output tensors
      std::vector<std::vector<TensorHandlePtr>> per_device_output_tensors;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. src/archive/tar/strconv_test.go

    		{math.MaxInt64, 12, true},
    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    		ok := fitsInBase256(v.width, v.in)
    		if ok != v.ok {
    			t.Errorf("fitsInBase256(%d, %d): got %v, want %v", v.in, v.width, ok, v.ok)
    		}
    	}
    }
    
    func TestParseNumeric(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want int64
    		ok   bool
    	}{
    		// Test base-256 (binary) encoded values.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.cc

                               const string& op_name) {
      std::vector<int64_t> input_ids(inputs.size());
      std::vector<tensorflow::DataType> input_dtypes(inputs.size());
      for (int i = 0; i < inputs.size(); i++) {
        input_ids[i] = ToId(inputs[i]);
        input_dtypes[i] = inputs[i]->DataType();
      }
      std::vector<TapeTensor> tape_tensors;
      tape_tensors.reserve(outputs.size());
      for (auto t : outputs) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device.cc

      device->delete_device = &DeleteParallelDevice;
      device->execute = &ParallelDeviceExecute;
      std::vector<std::string> underlying_devices_vector;
      underlying_devices_vector.reserve(num_underlying_devices);
      for (int device_index = 0; device_index < num_underlying_devices;
           ++device_index) {
        underlying_devices_vector.push_back(underlying_devices[device_index]);
      }
      std::unique_ptr<ParallelDevice> parallel_device(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                new TestStringListGenerator() {
                  @Override
                  protected List<String> create(String[] elements) {
                    return new Vector<>(MinimalCollection.of(elements));
                  }
                })
            .named("Vector")
            .withFeatures(
                ListFeature.GENERAL_PURPOSE,
                CollectionFeature.ALLOWS_NULL_VALUES,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 11.6K bytes
    - Viewed (0)
Back to top