Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TensorShapeProto (0.14 sec)

  1. tensorflow/c/c_api.cc

            " bytes) is too large to be parsed by the protocol buffer library");
        return;
      }
      TensorShapeProto shape;
      if (shape.ParseFromArray(proto, static_cast<int>(proto_len))) {
        desc->node_builder.Attr(attr_name, shape);
        status->status = absl::OkStatus();
      } else {
        status->status = InvalidArgument("Unparseable TensorShapeProto");
      }
    }
    
    void TF_SetAttrTensorShapeProtoList(TF_OperationDescription* desc,
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

        for (int j = 0; j < values_ndims[i]; ++j) {
          EXPECT_EQ(list[i][j], values[i][j]) << "(" << i << ", " << j << ")";
        }
      }
    }
    
    TEST_F(CApiAttributesTest, TensorShapeProto) {
      const int64_t pts[] = {2, 4, -1, 8};
      tensorflow::TensorShapeProto proto;
      tensorflow::PartialTensorShape(pts).AsProto(&proto);
      string bytes;
      proto.SerializeToString(&bytes);
    
      auto desc = init("shape");
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Dec 27 12:18:10 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top