Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_GraphGetTensorNumDims (0.18 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
    
      absl::Status Shape(tensorflow::PartialTensorShape* shape) const override {
        DCHECK(shape != nullptr);
        TF_Status status;
        int num_dims = TF_GraphGetTensorNumDims(graph_, output_, &status);
        DCHECK_GE(num_dims, -1);
        TF_RETURN_IF_ERROR(StatusFromTF_Status(&status));
        if (num_dims == kUnknownRank) {
          return absl::OkStatus();
        }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      EXPECT_EQ(-1, num_dims);
    
      // Set the shape to be unknown, expect no change.
      TF_GraphSetTensorShape(graph, feed_out_0, /*dims=*/nullptr, -1, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      num_dims = TF_GraphGetTensorNumDims(graph, feed_out_0, s);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.h

    // in `graph`.
    //
    // If the number of dimensions in the shape is unknown, returns -1.
    //
    // Returns an error into `status` if:
    //   * `output` is not in `graph`.
    TF_CAPI_EXPORT extern int TF_GraphGetTensorNumDims(TF_Graph* graph,
                                                       TF_Output output,
                                                       TF_Status* status);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

      }
      tensorflow::shape_inference::ShapeHandle new_shape =
          tensorflow::ShapeHandleFromDims(ic, num_dims, dims);
      status->status = graph->refiner.SetShape(node, output.index, new_shape);
    }
    
    int TF_GraphGetTensorNumDims(TF_Graph* graph, TF_Output output,
                                 TF_Status* status) {
      Node* node = &output.oper->node;
    
      mutex_lock l(graph->mu);
      tensorflow::shape_inference::InferenceContext* ic =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  5. RELEASE.md

        promoted the non-batch version of the ops to handle batches of matrices.
    *   Tracing/timeline support for distributed runtime (no GPU profiler yet).
    *   C API gives access to inferred shapes with `TF_GraphGetTensorNumDims` and
        `TF_GraphGetTensorShape`.
    *   Shape functions for core ops have moved to C++ via
        `REGISTER_OP(...).SetShapeFn(...)`. Python shape inference RegisterShape
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
Back to top