Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CreateTensor (0.1 sec)

  1. tensorflow/c/experimental/saved_model/core/ops/restore_ops.cc

                                          const std::string& s,
                                          ImmediateTensorHandlePtr* out) {
      int64_t flat_shape[] = {1};
      AbstractTensorPtr tensor(ctx->CreateTensor(DT_STRING, flat_shape));
      if (tensor.get() == nullptr) {
        return errors::Internal(
            "Failed to create vector string tensor for checkpoint restore");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/test_utils.cc

                                                DataType dtype,
                                                absl::Span<const int64_t> shape,
                                                int8_t value) {
      AbstractTensorPtr tensor(ctx->CreateTensor(dtype, shape));
      CHECK_NE(tensor.get(), nullptr)
          << "Tensor creation failed for tensor of dtype: "
          << DataTypeString(dtype);
      CHECK_EQ(tensor->Type(), dtype);
      for (int i = 0; i < shape.size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/runtime/runtime.h

        return maybe_capsule.status();
      }
      auto capsule = maybe_capsule.value();
      auto ctx = capsule.cast<tensorflow::ImmediateExecutionContext*>();
      tensorflow::AbstractTensorPtr t(
          ctx->CreateTensor(static_cast<tensorflow::DataType>(dtype), shape));
      // TODO(srbs): This is still a weak check. Check that dtype and T are
      // compatible.
      if (t->ByteSize() != sizeof(T) * data.size()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 4.4K bytes
    - Viewed (0)
Back to top