Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for lengthOf (0.26 sec)

  1. tensorflow/c/c_api_function_test.cc

        TF_Buffer* attr_buf = TF_NewBuffer();
        TF_FunctionGetAttrValueProto(func_, attr_name, attr_buf, s_);
        ASSERT_TRUE(out_attr->ParseFromArray(attr_buf->data, attr_buf->length));
        TF_DeleteBuffer(attr_buf);
      }
    
      const char* func_name_ = "MyFunc";
      const char* func_node_name_ = "MyFunc_0";
      TF_Status* s_;
      TF_Graph* func_graph_;
      TF_Graph* host_graph_;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  2. tensorflow/c/c_api_test.cc

      TF_OperationGetAttrTensorShapeProto(oper, "v", value, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_EQ(bytes.length(), value->length);
      EXPECT_EQ(0, memcmp(bytes.data(), value->data, value->length));
      TF_DeleteBuffer(value);
    }
    
    TEST_F(CApiAttributesTest, TensorShapeProtoList) {
      string bytes1, bytes2;
      tensorflow::TensorShapeProto proto;
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. tensorflow/c/eager/c_api_test.cc

      TFE_TensorHandle* input2 = TestMatrixTensorHandle(ctx);
      TFE_Op* identityOp = TFE_NewOp(ctx, "IdentityN", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Try to retrieve lengths before building the attributes (should fail)
      EXPECT_EQ(-1, TFE_OpGetInputLength(identityOp, "input", status));
      CHECK_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok())
        GTEST_SKIP() << "NewReadOnlyMemoryRegionFromFile() not supported: "
                     << status;
      EXPECT_EQ(region->length(), test_data.size());
      EXPECT_STREQ(reinterpret_cast<const char*>(region->data()),
                   test_data.c_str());
    }
    
    TEST_P(ModularFileSystemTest, TestCreateMemoryRegionFromFilePathIsInvalid) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top