Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for reinterpret (0.2 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        if (num_dims == kUnknownRank) {
          return absl::OkStatus();
        }
    
        std::vector<int64_t> dims(num_dims, kUnknownDim);
        TF_GraphGetTensorShape(graph_, output_,
                               reinterpret_cast<int64_t*>(dims.data()), num_dims,
                               &status);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
    
    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)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

      }
      tensorflow::PartialTensorShape partial_shape;
      if (shape.num_dims != -1) {
        DCHECK(shape.dim_sizes != nullptr);
        Status status = tensorflow::PartialTensorShape::MakePartialShape(
            reinterpret_cast<int64_t*>(shape.dim_sizes), shape.num_dims,
            &partial_shape);
        if (!status.ok()) {
          tsl::Set_TF_Status_from_Status(s, status);
          return nullptr;
        }
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api.cc

            methods_.summarize(data_, &c_status), TF_DeleteBuffer);
        if (!c_status.status.ok()) {
          return c_status.status;
        }
        summary = std::string(reinterpret_cast<const char*>(summary_buffer->data),
                              summary_buffer->length);
        return absl::OkStatus();
      }
    
     private:
      void* const data_;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  4. tensorflow/c/eager/gradients.cc

    // may lead to collisions. Introduce another way to get a unique id for this
    // tensor.
    int64_t ToId(const AbstractTensorHandle* t) {
      return static_cast<int64_t>(reinterpret_cast<uintptr_t>(t));
    }
    
    Status ZerosLike(AbstractContext* ctx, AbstractTensorHandle* t,
                     AbstractTensorHandle** result) {
      AbstractOperationPtr op(ctx->CreateOperation());
    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)
  5. tensorflow/c/c_api_test.cc

      TF_DeleteStatus(s);
    }
    
    void Deallocator(void* data, size_t, void* arg) {
      tensorflow::cpu_allocator()->DeallocateRaw(data);
      *reinterpret_cast<bool*>(arg) = true;
    }
    
    TEST(CAPI, Tensor) {
      const int num_bytes = 6 * sizeof(float);
      float* values =
          reinterpret_cast<float*>(tensorflow::cpu_allocator()->AllocateRaw(
              TF_TensorDefaultAlignment(), num_bytes));
      int64_t dims[] = {2, 3};
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  6. tensorflow/c/c_api.cc

      for (int i = 0; i < shape.dims(); ++i) {
        dims.push_back(shape.dim_size(i));
        nelems *= shape.dim_size(i);
      }
      CHECK_EQ(nelems, 0);
      return TF_NewTensor(
          dtype, reinterpret_cast<const int64_t*>(dims.data()), shape.dims(),
          reinterpret_cast<void*>(&empty), 0, [](void*, size_t, void*) {}, nullptr);
    }
    
    static void TF_Run_Helper(
        Session* session, const char* handle, const TF_Buffer* run_options,
    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)
  7. tensorflow/c/c_api_experimental.cc

      auto iter = builder->attr_names.insert(attr_name).first;
      builder->Set(*iter, tensorflow::gtl::ArraySlice<const tensorflow::DataType>(
                              reinterpret_cast<const tensorflow::DataType*>(values),
                              num_values));
    }
    
    void TF_AttrBuilderCheckCanRunOnDevice(TF_AttrBuilder* builder,
                                           const char* device_type,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/discovery/v1/generated.proto

    message EndpointConditions {
      // ready indicates that this endpoint is prepared to receive traffic,
      // according to whatever system is managing the endpoint. A nil value
      // indicates an unknown state. In most cases consumers should interpret this
      // unknown state as ready. For compatibility reasons, ready should never be
      // "true" for terminating endpoints, except when the normal readiness
      // behavior is being explicitly overridden, for example when the associated
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/imagepolicy/v1alpha1/generated.proto

      // Annotations is a list of key-value pairs extracted from the Pod's annotations.
      // It only includes keys which match the pattern `*.image-policy.k8s.io/*`.
      // It is up to each webhook backend to determine how to interpret these annotations, if at all.
      // +optional
      map<string, string> annotations = 2;
    
      // Namespace is the namespace the pod is being created in.
      // +optional
      optional string namespace = 3;
    }
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/discovery/v1beta1/generated.proto

    message EndpointConditions {
      // ready indicates that this endpoint is prepared to receive traffic,
      // according to whatever system is managing the endpoint. A nil value
      // indicates an unknown state. In most cases consumers should interpret this
      // unknown state as ready. For compatibility reasons, ready should never be
      // "true" for terminating endpoints.
      // +optional
      optional bool ready = 1;
    
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top