Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for heddle (0.2 sec)

  1. tensorflow/c/c_api.cc

      if (!status->status.ok()) {
        delete lib_handle;
        return nullptr;
      }
      return lib_handle;
    }
    
    TF_Buffer TF_GetOpList(TF_Library* lib_handle) { return lib_handle->op_list; }
    
    void TF_DeleteLibraryHandle(TF_Library* lib_handle) {
      if (lib_handle == nullptr) return;
      tensorflow::port::Free(const_cast<void*>(lib_handle->op_list.data));
      delete lib_handle;
    }
    
    TF_Buffer* TF_GetAllOpList() {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/dlpack_test.cc

      dltensor_in->strides = strides.data();
      TFE_TensorHandle* handle = TFE_HandleFromDLPack(&dlm_in, status, ctx);
      ASSERT_NE(handle, nullptr)
          << TF_Message(status) << " (shape=[" << absl::StrJoin(shape, ",")
          << "], strides=[" << absl::StrJoin(strides, ",") << "])";
    
      auto* dlm_out =
          static_cast<DLManagedTensor*>(TFE_HandleToDLPack(handle, status));
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/nn_grad.cc

    #include "tensorflow/c/experimental/gradients/nn_grad.h"
    
    #include "absl/types/span.h"
    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/eager/immediate_execution_context.h"
    #include "tensorflow/c/eager/immediate_execution_tensor_handle.h"
    #include "tensorflow/c/experimental/ops/array_ops.h"
    #include "tensorflow/c/experimental/ops/math_ops.h"
    #include "tensorflow/c/experimental/ops/nn_ops.h"
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/abstract_tensor_handle.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    
    namespace tensorflow {
    
    std::string AbstractTensorHandle::DebugString() const {
      PartialTensorShape shape;
      Status s = Shape(&shape);
      std::string shape_string;
      if (!s.ok()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_eager.cc

                                                      TF_Status* s) {
      auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at));
      if (!handle) {
        string msg =
            StrCat("Not an eager tensor handle.", reinterpret_cast<uintptr_t>(at));
        TF_SetStatus(s, TF_INVALID_ARGUMENT, msg.c_str());
        return nullptr;
      }
      return wrap(handle);
    }
    
    TFE_Context* TF_ExecutionContextGetTFEContext(TF_ExecutionContext* ctx,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 25 04:40:46 GMT 2020
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

                                  "VarHandleOp", TFE_OpGetAttrs(handle_op.get()),
                                  /*expected_max_outputs=*/1, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      const std::vector<std::unique_ptr<ParallelTensor>>& handles = *outputs;
      std::vector<ParallelTensor*> handle_inputs;
      handle_inputs.reserve(handles.size());
      for (auto& handle : handles) {
        handle_inputs.push_back(handle.get());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental.cc

        if (it != loaded_libs->end()) {
          lib_handle->lib_handle = it->second;
        } else {
          status->status =
              env->LoadDynamicLibrary(library_filename, &lib_handle->lib_handle);
          if (status->status.ok()) {
            TF_CHECK_OK(
                tensorflow::RegisterPluggableDevicePlugin(lib_handle->lib_handle));
          } else {
            delete lib_handle;
            return nullptr;
          }
        }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_TensorHandle* var_handle1 = TestVariable(ctx, 2.0, dev1_name);
      EXPECT_NE(var_handle1, nullptr);
    
      TFE_TensorHandle* value_handle = nullptr;
      ReadVariable(ctx, var_handle1, &value_handle);
      CheckTFE_TensorHandleHasFloats(value_handle, {2});
      TFE_DeleteTensorHandle(value_handle);
    
      // Start a new worker to replace task:1
      ReplaceTaskInServerDef(&server_def, 1);
      server_def.set_task_index(1);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    // SECTION 2. Implementation for `TF_WritableFile`
    // ----------------------------------------------------------------------------
    namespace tf_writable_file {
    
    typedef struct PosixFile {
      const char* filename;
      FILE* handle;
    } PosixFile;
    
    static void Cleanup(TF_WritableFile* file) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      TFE_OpSetDevice(op.get(), device, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
      TFE_Execute(op.get(), &var_handle, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      return new Variable(var_handle, type);
    }
    
    void Variable::Destroy(TFE_Context* context, TF_Status* status) {
      // Free the backing buffer for the variable.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
Back to top