Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for InferShapes (0.11 sec)

  1. tensorflow/compiler/jit/shape_inference_test.cc

      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_CHECK_OK(root.ToGraph(graph.get()));
    
      GraphShapeInfo shape_info;
      TF_ASSERT_OK(InferShapes(graph.get(), /*arg_shapes=*/{},
                               /*fnlib_def=*/nullptr, &shape_info));
    
      std::map<string, std::vector<PartialTensorShape>> expected = {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/c/ops_test.cc

      TF_Status* status = TF_NewStatus();
      TF_RegisterOpDefinition(builder, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      TF_ASSERT_OK(
          shape_inference::ShapeInferenceTestutil::InferShapes(op, "[1,2]", "in0"));
      TF_DeleteStatus(status);
    }
    
    TEST(OpsTest, TestShapeInference_UnknownShape) {
      ShapeInferenceTestOp op("UnknownShapeOp");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/shape_inference.h

    // `arg_shapes`: user given map from the `index` to shapes of this
    // node, where `index` is the `index` attribute of `_Arg` op or `_index`
    // attribute of `Placeholder` op.
    Status InferShapes(Graph* graph, const std::map<int, InferredShape>& arg_shapes,
                       const tensorflow::FunctionLibraryDefinition* fnlib_def,
                       GraphShapeInfo* shape_info);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/shape_inference.cc

                  << DataTypeString(output.handle_type) << " handle_shape "
                  << output.handle_shape.DebugString();
        }
      }
      return absl::OkStatus();
    }
    
    }  // namespace
    
    Status InferShapes(Graph* graph, const std::map<int, InferredShape>& arg_shapes,
                       const tensorflow::FunctionLibraryDefinition* fnlib_def,
                       GraphShapeInfo* shape_info) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/encapsulate_util.cc

    Status PerformStaticShapeInferenceBeforeEncapsulation(Graph* g) {
      // Perform shape inference.
      std::map<int, InferredShape> arg_shapes;
      GraphShapeInfo shape_info;
      TF_RETURN_IF_ERROR(
          InferShapes(g, arg_shapes, /*fnlib_def=*/nullptr, &shape_info));
    
      // Add attribute for output shapes.
      auto node_name_index = g->BuildNodeNameIndex();
      for (auto iter : shape_info) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top