Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addons (0.17 sec)

  1. tensorflow/c/c_api_function_test.cc

      TF_GraphCopyFunction(host_graph_, func_, nullptr, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      // Delete the gradient func.
      // It is safe to delete after adding a copy to host graph.
      TF_DeleteFunction(grad_func);
    
      // Check that GraphDef did not change
      GraphDef gdef2;
      GetGraphDef(host_graph_, &gdef2);
      ASSERT_EQ(gdef.DebugString(), gdef2.DebugString());
    
    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/eager/c_api_test.cc

      // Store pointer to raw buffer for validation of forwarding behaviour.
      TF_Tensor* orig = TFE_TensorHandleResolve(n, status);
      void* orig_ptr = TF_TensorData(orig);
      TF_DeleteTensor(orig);
    
      TFE_Op* add_op = AddOp(ctx, n, m);
      std::string cpu_device_name;
      ASSERT_TRUE(GetDeviceName(ctx, &cpu_device_name, "CPU"));
      TFE_OpSetDevice(add_op, cpu_device_name.c_str(), status);
      ASSERT_EQ(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)
Back to top