Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,624 for emplace (0.19 sec)

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

        for (int i = 0; i < t->num_tensors(); ++i) {
          TensorHandlePtr this_output(
              TFE_TensorHandleCopySharingTensor(t->tensor(i), status));
          outputs.emplace_back(std::move(this_output));
          if (TF_GetCode(status) != TF_OK) return result;
        }
        result.emplace(std::move(outputs));
        return result;
      }
      std::vector<ParallelTensor*> parallel_inputs;
    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)
  2. tensorflow/c/c_test_util.cc

      inputs_.clear();
      for (const auto& p : inputs) {
        inputs_.emplace_back(TF_Output{p.first, 0});
        input_values_.emplace_back(p.second);
      }
    }
    
    void CSession::SetOutputs(std::initializer_list<TF_Operation*> outputs) {
      ResetOutputValues();
      outputs_.clear();
      for (TF_Operation* o : outputs) {
        outputs_.emplace_back(TF_Output{o, 0});
      }
      output_values_.resize(outputs_.size());
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  3. tensorflow/c/eager/abstract_operation.h

      std::vector<const char*> raw_strs;
      std::vector<size_t> lengths;
      raw_strs.reserve(values.size());
      lengths.reserve(values.size());
      for (const auto& s : values) {
        raw_strs.emplace_back(s.data());
        lengths.emplace_back(s.size());
      }
      return SetAttrStringList(attr_name,
                               reinterpret_cast<const void**>(raw_strs.data()),
                               lengths.data(), values.size());
    }
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/tape.h

            return true;
          }
        }
      }
      return false;
    }
    
    template <typename Gradient, typename BackwardFunction, typename TapeTensor>
    void GradientTape<Gradient, BackwardFunction, TapeTensor>::Watch(
        int64_t tensor_id) {
      tensor_tape_.emplace(tensor_id, -1);
    }
    
    template <typename Gradient, typename BackwardFunction, typename TapeTensor>
    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)
  5. tensorflow/c/eager/c_api_unified_experimental_graph.cc

          for (int i = 0; i < num_values; ++i) {
            op_->colocation_constraints.emplace(static_cast<const char*>(values[i]),
                                                lengths[i]);
          }
        } else {
          std::vector<tensorflow::StringPiece> v;
          v.reserve(num_values);
          for (int i = 0; i < num_values; ++i) {
            v.emplace_back(static_cast<const char*>(values[i]), lengths[i]);
          }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  6. tensorflow/c/eager/unified_api_testutil.cc

        PartialTensorShape shape;
        TF_RETURN_IF_ERROR(input->Shape(&shape));
        TF_RETURN_IF_ERROR(dyn_cast<tracing::TracingContext>(ctx)->AddParameter(
            input->DataType(), shape, &handle));
        params->emplace_back(handle);
      }
      return absl::OkStatus();
    }
    
    // Runs `model` maybe wrapped in a function.
    Status RunModel(Model model, AbstractContext* ctx,
                    absl::Span<AbstractTensorHandle* const> inputs,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        return;
      }
      unwrapped_results.resize(real_num_outputs);
      outputs->reserve(real_num_outputs);
      for (TFE_TensorHandle* unwrapped_result : unwrapped_results) {
        outputs->emplace_back(unwrapped_result);
      }
    }
    
    ParallelDevice::ParallelDevice(const std::vector<std::string>& devices,
                                   bool is_async, int in_flight_nodes_limit)
        : underlying_devices_(devices),
    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)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      std::vector<TFE_TensorHandle*> tensors() const {
        std::vector<TFE_TensorHandle*> result;
        result.reserve(tensors_.size());
        for (const TensorHandlePtr& tensor : tensors_) {
          result.emplace_back(tensor.get());
        }
        return result;
      }
    
     private:
      ParallelTensor(const ParallelDevice& device,
                     std::vector<TensorHandlePtr> tensors,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function.cc

                                        "Encountered while processing input ", i,
                                        " into function '", fn_name, "'");
    
        input_tensors->emplace_back(node, idx);
    
        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
    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)
  10. tensorflow/c/c_api.cc

        input_list.emplace_back(&inputs[i].oper->node, inputs[i].index);
      }
      desc->node_builder.Input(input_list);
    }
    
    void TF_AddControlInput(TF_OperationDescription* desc, TF_Operation* input) {
      desc->node_builder.ControlInput(&input->node);
    }
    
    void TF_ColocateWith(TF_OperationDescription* desc, TF_Operation* op) {
      desc->colocation_constraints.emplace(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
Back to top