Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for addons (0.52 sec)

  1. tensorflow/c/c_api.cc

                                   TF_Status* status, TF_Output* dy) {
    #if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
      status->status = tensorflow::errors::Unimplemented(
          "Adding gradients is not supported on mobile. File a bug at "
          "https://github.com/tensorflow/tensorflow/issues if this feature is "
          "important to you");
    #else
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/grappler/grappler_test.cc

      TF_InferStatically(graph_properties, true, false, false, false, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (const NodeDef& node : item.graph.node()) {
        if (node.op() == "AddN") {
          int num_values = 0;
          TF_GetInputPropertiesListSize(graph_properties, node.name().c_str(),
                                        &num_values, status);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_cluster_test.cc

      const char remote_device_name[] =
          "/job:localhost/replica:0/task:1/device:CPU:0";
      CheckRemoteMatMulExecutesOK(ctx, remote_device_name, local_device_name);
    
      // Adding a non-existent remote worker to cluster def. This should cause the
      // UpdateServerDef call to fail.
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

        // Make a copy so that we can mutate it.
        FunctionDef fdef_to_load = fdef;
        if (mutate_proto_func) {
          (*mutate_proto_func)(&fdef_to_load);
        }
        VLOG(1) << "Adding func to graph: " << fdef_to_load.DebugString();
        std::vector<char> binary_proto_buf(fdef_to_load.ByteSizeLong());
        fdef_to_load.SerializeToArray(binary_proto_buf.data(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      const char* op_name_ = nullptr;
      // TODO(srbs): Use this.
      string device_name_;
    };
    
    // GraphContext wraps a TF_Graph modeling a single function and manages the
    // "execution" of operation, i.e. adding them to the function.
    class GraphContext : public TracingContext {
     public:
      explicit GraphContext(const char* name)
          : TracingContext(kGraph),
            graph_(new TF_Graph(), TF_DeleteGraph),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_test_util.cc

      TFE_DeleteOp(op);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      CHECK_EQ(0, num_retvals);
    
      TF_DeleteStatus(status);
    
      return var_handle;
    }
    
    TFE_Op* AddOp(TFE_Context* ctx, TFE_TensorHandle* a, TFE_TensorHandle* b) {
      TF_Status* status = TF_NewStatus();
    
      TFE_Op* op = TFE_NewOp(ctx, "AddV2", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  8. tensorflow/c/eager/c_api.cc

          if (!status->status.ok()) return;
          // TODO(nareshmodi): TFE_OpSetAttrFunction and TFE_OpSetAttrFunctionList
          // require TFE_Op* and just convert it internally a NameAttrValue, so
          // consider adding an overload to the C API to make this case easier.
          TFE_OpSetAttrFunction(op, attr_name, func_op);
          TFE_DeleteOp(func_op);
        } break;
        case tensorflow::AttrValue::kList: {
          // String
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        return TF_SetStatus(status, TF_ALREADY_EXISTS, path);
      }
    
      auto metadata = gcs_file->gcs_client.InsertObject(
          bucket, object, "",
          // Adding this parameter means HTTP_CODE_PRECONDITION_FAILED
          // will be returned if the object already exists, so avoid reuploading.
          gcs::IfGenerationMatch(0), gcs::Fields(""));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. 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)
Back to top