Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for resources (0.19 sec)

  1. tensorflow/c/c_api.cc

        *dst = tensorflow::Tensor(tensorflow::DT_RESOURCE, dst->shape());
        if (!dst->scalar<tensorflow::ResourceHandle>()().ParseFromString(
                string(static_cast<const char*>(tensor_interface->Data()),
                       tensor_interface->ByteSize()))) {
          return InvalidArgument(
              "Malformed TF_RESOURCE tensor: unable to parse resource handle");
        }
        return absl::OkStatus();
      }
      return absl::OkStatus();
    }
    
    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/c_api_experimental.cc

                         TF_ShapeAndTypeList* input_tensors_as_shapes,
                         TF_ShapeAndTypeList** input_resource_shapes_and_types,
                         TF_ShapeAndTypeList** output_shapes,
                         TF_ShapeAndTypeList*** output_resource_shapes_and_types,
                         TF_Status* status) {
      using tensorflow::NodeDef;
      using tensorflow::OpRegistrationData;
    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)
  3. tensorflow/c/eager/c_api_cluster_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // The device of var_handle0 is local device which is the same before and
      // after cluster update. Remove resource with valid device should succeed.
      TFE_Op* op = TFE_NewOp(ctx, "DestroyResourceOp", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, var_handle0, status);
    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/experimental/gradients/custom_gradient_test.cc

      tape.RecordOperation(inputs, {exp_output}, gradient_function.release());
      TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx,
                                              /*targets*/ {exp_output},
                                              /*sources=*/inputs,
                                              /*output_gradients=*/{},
                                              /*result=*/outputs));
      exp_output->Unref();
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/grad_test_helper.cc

        TF_RETURN_IF_ERROR(
            forward_model(tape_ctx.get(), inputs, absl::MakeSpan(temp_outputs)));
    
        TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx, /*targets=*/temp_outputs,
                                                /*sources=*/inputs,
                                                /*output_gradients=*/{}, outputs));
        for (auto temp_output : temp_outputs) {
          temp_output->Unref();
        }
        return absl::OkStatus();
      };
    }
    
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

          container_name, plugin_resource_name, &tf_plugin_resource,
          [plugin_resource_name, create_func, create_func_args,
           delete_func](tensorflow::PluginResource** new_resource) {
            void* opaque_plugin_resource = create_func(create_func_args);
            *new_resource = new tensorflow::PluginResource(
                opaque_plugin_resource, plugin_resource_name, delete_func);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_distributed_test.cc

      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'AddVariablesFunction'"
          "      input_arg {"
          "        name: 'var'"
          "        type: DT_RESOURCE"
          "      }"
          "      output_arg {"
          "        name: 'sum'"
          "        type: DT_FLOAT"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'read0'"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients_test.cc

      tape.RecordOperation(inputs, {neg_output}, nullptr, "Neg");
      return tape.ComputeGradient(ctx,
                                  /*targets=*/{neg_output},
                                  /*sources=*/inputs,
                                  /*output_gradients=*/{}, outputs);
    }
    
    TEST_P(CppGradients, TestRecordOperationWithNullGradientFunctionRaises) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

                static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED));
      EXPECT_EQ(TF_UNAUTHENTICATED,
                static_cast<TF_Code>(tensorflow::error::UNAUTHENTICATED));
      EXPECT_EQ(TF_RESOURCE_EXHAUSTED,
                static_cast<TF_Code>(tensorflow::error::RESOURCE_EXHAUSTED));
      EXPECT_EQ(TF_FAILED_PRECONDITION,
                static_cast<TF_Code>(tensorflow::error::FAILED_PRECONDITION));
    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)
  10. tensorflow/c/eager/c_api_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    }
    BENCHMARK(BM_ExecuteFunction)->Arg(0)->Arg(1);
    
    TEST(CAPI, Variables) {
      // Variables use resource handles, so this is really a test for resource
      // tensor handling.
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, 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