Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for deletion (0.17 sec)

  1. tensorflow/c/experimental/grappler/grappler.h

    #define TP_OPTIMIZER_CONFIGS_STRUCT_SIZE \
      TF_OFFSET_OF_END(TP_OptimizerConfigs, scoped_allocator_optimization)
    
    // Struct for Optimizer. Plugin authors must provide an optimize function.
    // Creation and deletion functions are optional.
    typedef struct TP_Optimizer {
      size_t struct_size;
      void* ext;  // reserved for future use
    
      // [Optional]
      // Create function for optimizer.
      void* (*create_func)();
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/filesystem_interface.h

      /// This is accomplished by traversing directory tree rooted at `path` and
      /// deleting entries as they are encountered, from leaves to root. Each plugin
      /// is free to choose a different approach which obtains similar results.
      ///
      /// On successful deletion, `status` must be `TF_OK` and `*undeleted_files`
      /// and `*undeleted_dirs` must be 0. On unsuccessful deletion, `status` must
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_test.cc

      ASSERT_TRUE(arrived);
      ASSERT_FALSE(executed);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> matmul(
          MatMulOp(context, hcpu, hdevice), TFE_DeleteOp);
      TFE_OpSetDevice(matmul.get(), name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_TensorHandle* retval;
      int num_retvals = 1;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/tfe_op_internal.h

    // Wraps a pointer to an operation implementation.
    //
    // WARNING: Since the underlying object could be ref-counted a user of this
    // interface cannot destruct the underlying operation object. Instead, call
    // TFE_DeleteOp who calls Release() on the operation pointer and deletes
    // the TFE_Op structure.
    typedef struct TFE_Op TFE_Op;
    
    namespace tensorflow {
    
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::ImmediateExecutionOperation, TFE_Op);
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jun 17 19:39:13 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/c/env_test.cc

            << dirpath;
    
        TF_DeleteFile(filepath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_DeleteFile failed for " << filepath << ": "
                        << TF_Message(s);
    
        // Now deleting the directory should work.
        TF_DeleteDir(dirpath.c_str(), s);
        ASSERT_TF_OK(s) << "TF_DeleteDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        TF_DeleteStatus(s);
        break;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental_test.cc

                        /*input_shapes*/ {unknown_shape(), unknown_shape()},
                        /*input_tensors*/ {},
                        /*expected_shape*/ make_shape({kUnknownDim, kUnknownDim}));
    
      TFE_DeleteOp(matmul_op);
      // TODO(bgogul): Add some death tests where status is not OK.
    }
    
    TEST_F(ShapeInferenceTest, InfersShapesFromInputTensors) {
      // Prepare some tensors for shape.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_test_util.cc

      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TFE_Execute(op, &var_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_DeleteOp(op);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      CHECK_EQ(1, num_retvals);
    
      // Assign 'value' to it.
      op = TFE_NewOp(ctx, "AssignVariableOp", status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  8. tensorflow/c/eager/gradients.h

      // a trainable dtype.
      bool ShouldRecord(
          absl::Span<const AbstractTensorHandle* const> tensors) const;
      // Unwatches this tensor on the tape. Mainly used for cleanup when deleting
      // eager tensors.
      void DeleteTrace(const AbstractTensorHandle*);
    
      // Consumes the internal state of the tape (so cannot be called more than
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 10:27:05 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_remote_test_util.cc

      TFE_DeleteTensorHandle(retvals[0]);
      for (auto* h : handles_task0) {
        TFE_DeleteTensorHandle(h);
      }
      for (auto* h : handles_task2) {
        TFE_DeleteTensorHandle(h);
      }
    
      TFE_DeleteOp(matmul);
    
      TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
      TFE_ExecutorWaitForAllPendingNodes(executor, status);
      ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.cc

      status->status = new_op->Reset(op_or_function_name, nullptr);
      if (!status->status.ok()) {
        new_op->Release();
        new_op = nullptr;
      }
      return tensorflow::wrap(new_op);
    }
    
    void TFE_DeleteOp(TFE_Op* op) {
      if (op == nullptr) {
        return;
      }
    
      tensorflow::unwrap(op)->Release();
    }
    
    const char* TFE_OpGetName(const TFE_Op* op, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top