Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for push_back (0.48 sec)

  1. tensorflow/c/eager/tape.h

            // GradientTape which uses ones.
            Gradient* zero = input_tensors[target_index].ZerosLike();
            new_zeros.push_back(zero);
            in_grads.push_back(zero);
          } else {
            in_grads.push_back(nullptr);
          }
        } else {
          in_grads.push_back(current_grad->second);
        }
      }
    
      // Avoid infinite recursion. Whichever forward function we run, it'll end up
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  2. tensorflow/c/c_api_function.cc

        for (int i = 0; i < noutputs; ++i) {
          output_names_vec.push_back(string(output_names[i]));
        }
      }
    
      // Process control output names.
      std::vector<string> control_output_names_vec;
      if (control_output_names) {
        control_output_names_vec.reserve(ncontrol_outputs);
        for (int i = 0; i < ncontrol_outputs; ++i) {
          control_output_names_vec.push_back(string(control_output_names[i]));
        }
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        components.reserve(underlying_devices_.size());
        for (int j = 0; j < underlying_devices_.size(); ++j) {
          components.push_back(std::move(per_device_output_tensors[j][i]));
        }
        if (expected_output_shapes[i].IsFullyDefined()) {
          per_device_outputs.push_back(ParallelTensor::FromTensorHandles(
              *this, std::move(components),
              absl::Span<const int64_t>(expected_output_shapes[i].dim_sizes()),
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

              absl::get<TFE_TensorHandle*>(inputs[i]), status));
        }
        std::vector<MaybeParallelTensorOwned> result_content;
        result_content.reserve(1);
        result_content.push_back(ParallelTensor::FromTensorHandles(
            parallel_device, std::move(components), status));
        if (TF_GetCode(status) != TF_OK) return result;
        result.emplace(std::move(result_content));
        return result;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      TF_RETURN_IF_ERROR(parent_op_->AddInput(input));
      forward_op_.inputs.push_back(input);
      return OkStatus();
    }
    Status TapeOperation::AddInputList(
        absl::Span<AbstractTensorHandle* const> inputs) {
      TF_RETURN_IF_ERROR(parent_op_->AddInputList(inputs));
      for (auto input : inputs) {
        forward_op_.inputs.push_back(input);
      }
      return OkStatus();
    }
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // fetcher calls that the cache makes.
      calls.push_back(0);
      // Cache miss - drains an element from `calls`.
      TF_EXPECT_OK(ReadCache(&cache, "", 0, 1, &out));
      // Cache hit - does not drain an element from `calls`.
      TF_EXPECT_OK(ReadCache(&cache, "", 0, 1, &out));
      calls.push_back(block_size);
      // Cache miss followed by cache hit.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      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 =
          ParallelTensor::FromTensorHandles(
              parallel_device, std::move(vector_handles), status.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

        plugin_status.reserve(files.size());
        for (int i = 0; i < files.size(); i++)
          plugin_status.push_back(TF_NewStatus());
        result = ops_->paths_exist(filesystem_.get(), translated_names.data(),
                                   files.size(), plugin_status.data());
        for (int i = 0; i < files.size(); i++) {
          status->push_back(StatusFromTF_Status(plugin_status[i]));
          TF_DeleteStatus(plugin_status[i]);
        }
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_debug.cc

        return shape;
      }
      shape.reserve(rank);
      for (int i = 0; i < rank; ++i) {
        int64_t dim;
        *status = handle.Dim(i, &dim);
        if (!status->ok()) {
          return shape;
        }
        shape.push_back(dim);
      }
      return shape;
    }
    
    }  // namespace
    
    extern "C" {
    
    TF_CAPI_EXPORT extern TFE_TensorDebugInfo* TFE_TensorHandleTensorDebugInfo(
        TFE_TensorHandle* h, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/gradients.cc

      forward_op_->inputs.push_back(input);
      return absl::OkStatus();
    }
    Status AddInputList(AbstractOperation* op_,
                        absl::Span<AbstractTensorHandle* const> inputs,
                        ForwardOperation* forward_op_) {
      TF_RETURN_IF_ERROR(op_->AddInputList(inputs));
      for (auto input : inputs) {
        forward_op_->inputs.push_back(input);
      }
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top