Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for add_tensor (0.37 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          }
        } else if (auto attr = mlir::dyn_cast<mlir::ElementsAttr>(a)) {
          TensorProto tensor;
          TF_RETURN_IF_ERROR(ConvertToTensorProto(attr, &tensor));
          *list->add_tensor() = tensor;
        } else if (auto attr = mlir::dyn_cast<mlir::FlatSymbolRefAttr>(a)) {
          AttrValue attr_val;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val));
          *list->add_func() = attr_val.func();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

        for (const int old_tensor : std::vector<int>(operations_[iop].tensors)) {
          const auto new_tensor =
              std::lower_bound(new_tensors.begin(), new_tensors.end(),
                               std::make_pair(old_tensor, 0));
          if (new_tensor != new_tensors.end() && new_tensor->first == old_tensor) {
            DelUse(iop, old_tensor);
            AddUse(iop, new_tensor->second);
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer_test.cc

      r_.AddUse(/*ioperation=*/r_.AddOperation(/*is_stateful=*/false),
                /*itensor=*/r_.AddTensor(100));
      r_.AddUse(/*ioperation=*/r_.AddOperation(/*is_stateful=*/false),
                /*itensor=*/r_.AddTensor(1));
      r_.AddUse(/*ioperation=*/r_.AddOperation(/*is_stateful=*/false),
                /*itensor=*/r_.AddTensor(100));
      ASSERT_THAT(r_.GetMemProfile(), ElementsAreArray({100, 1, 100}));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/dlpack.cc

        return nullptr;
      }
      TF_DataType dtype;
      Status s = TfDataTypeFormDlDataType(dl_tensor->dtype, &dtype);
      if (!s.ok()) {
        status->status = std::move(s);
        return nullptr;
      }
      int num_dims = dl_tensor->ndim;
      const int64_t* dims = dl_tensor->shape;
      void* data = dl_tensor->data;
    
      if (dl_tensor->byte_offset != 0) {
        status->status = tensorflow::errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

      // The arguments must be valid indices (i.e., obtained with
      // `AddOperation`/`AddTensor`).
      void AddUse(int ioperation, int itensor);
    
      // Undoes an AddUse(ioperation, itensor). NoOp if there was no prior `AddUse`.
      // The arguments must be valid indices (i.e., obtained with
      // `AddOperation`/`AddTensor`).
      void DelUse(int ioperation, int itensor);
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

                                                      TF_Status* status) {
      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      const tensorflow::Tensor& arg_tensor = cc_ctx->input(index);
      absl::Status cc_status;
      if (arg_tensor.dtype() != tensorflow::DT_RESOURCE) {
        cc_status = absl::InvalidArgumentError(
            absl::StrCat("Trying to obtain resource handle from Input[", index,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_launch_util.cc

        //
        // 3. AsyncValueTensor, containing a PjRtBuffer. This is the legacy mode
        // and certain device type (e.g. TPU) still uses this path.
        AsyncValueTensor* av_tensor = AsyncValueTensor::FromTensor(tensor);
        if (use_pjrt_tensor_buffer) {
          if (av_tensor != nullptr) {
            return absl::InvalidArgumentError(
                "If use_pjrt_tensor_buffer is set, the input tensor should not "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      auto begin_tensor = CreateI32DenseConst(builder, begin, loc);
      auto end_tensor = CreateI32DenseConst(builder, end, loc);
      auto strides_tensor = CreateI32DenseConst(builder, strides, loc);
    
      return builder->create<TF::StridedSliceOp>(
          loc, output_type, input, begin_tensor, end_tensor, strides_tensor,
          builder->getI64IntegerAttr(begin_mask),
          builder->getI64IntegerAttr(end_mask),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top