Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for created (0.2 sec)

  1. tensorflow/c/c_api.cc

              "and will trigger an error in the future. Either don't modify "
              "nodes after running them or create a new session.");
        }
      }
    }
    
    namespace {
    
    // Helper method that creates a shape handle for a shape described by dims.
    tensorflow::shape_inference::ShapeHandle ShapeHandleFromDims(
        tensorflow::shape_inference::InferenceContext* ic, int num_dims,
    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/parallel_device/parallel_device_remote_test.cc

      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server1)
                      .ok());
      ASSERT_TRUE(worker_server1->Start().ok());
    
      server_def.set_task_index(2);
      std::unique_ptr<tensorflow::GrpcServer> worker_server2;
      ASSERT_TRUE(tensorflow::GrpcServer::Create(
                      server_def, tensorflow::Env::Default(), &worker_server2)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      // When creating file, use the same permissions as original
      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
      // O_WRONLY | O_CREAT | O_TRUNC:
      //   Open file for write and if file does not exist, create the file.
      //   If file exists, truncate its size to 0.
      int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode);
      if (dst_fd < 0) {
        close(src_fd);
        return -1;
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_unified_experimental.cc

    using tensorflow::tracing::TracingTensorHandle;
    
    void TF_SetTracingImplementation(const char* name, TF_Status* s) {
      tsl::Set_TF_Status_from_Status(s, SetDefaultTracingEngine(name));
    }
    
    // Creates a new TensorFlow function, it is an execution context attached to a
    // given tracing context.
    TF_ExecutionContext* TF_CreateFunction(const char* fn_name, TF_Status* s) {
      return wrap(CreateTracingExecutionContext(fn_name, s));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.cc

      void MarkAsResult(AbstractTensorHandle* gradient) const override;
    
      void DeleteGradient(AbstractTensorHandle* gradient) const override;
    
     private:
      // The context where the aggregation op `Add` is to be created.
      AbstractContext* ctx_;
    };
    
    // Returns the number of elements in the gradient tensor.
    int64_t TapeVSpace::NumElements(AbstractTensorHandle* tensor) const {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

      TF_Output add_inputs[2] = {{l, 0}, {r, 0}};
      TF_AddInputList(desc, add_inputs, 2);
      TF_AddControlInput(desc, ctrl_op);
      return TF_FinishOperation(desc, s);
    }
    
    // If `op_device` is non-empty, set the created op on that device.
    void BinaryOpHelper(const char* op_name, TF_Operation* l, TF_Operation* r,
                        TF_Graph* graph, TF_Status* s, const char* name,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  7. tensorflow/c/eager/custom_device_test.cc

      RegisterLoggingDevice(context.get(), name, /*strict_scope_placement=*/true,
                            &arrived, &executed, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Create a variable handle placed on the custom device.
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> op(
          TFE_NewOp(context.get(), "VarHandleOp", status.get()), TFE_DeleteOp);
    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)
  8. tensorflow/c/c_api_experimental.cc

      TF_Output output{dequeue_op, 0};
      TF_Tensor* ret;
      TF_SessionRun(session, /*run_options*/ nullptr,
                    // input related parameters
                    /*inputs*/ nullptr, /*input_values*/ nullptr, /*ninputs*/ 0,
                    // output related parameters
                    /*outputs*/ &output, /*output_values*/ &ret,
                    /*noutputs*/ 1,
                    /*targets*/ nullptr, /*ntargets*/ 0,
    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)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    //     probe for gadgets inside core TensorFlow. We can even protect the area
    //     of memory where the copies reside to not allow any more writes to it
    //     after all copies are created.
    template <typename T>
    static std::unique_ptr<const T> CopyToCore(const T* plugin_ops,
                                               size_t plugin_size) {
      if (plugin_ops == nullptr) return nullptr;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_cluster_test.cc

      tensorflow::Status s = tensorflow::GrpcServer::Create(
          updated_server_def, tensorflow::Env::Default(), &worker_server);
      ASSERT_TRUE(s.ok()) << s.message();
      ASSERT_TRUE(worker_server->Start().ok());
    
      TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Create a new tensor_handle.
    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)
Back to top