Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Kull (0.17 sec)

  1. tensorflow/c/c_api.cc

    }
    
    void TF_SetFullType(TF_Graph* graph, TF_Operation* op,
                        const TF_Buffer* full_type_proto) {
      using tensorflow::RecordMutation;
      mutex_lock l(graph->mu);
      FullTypeDef full_type;
      full_type.ParseFromArray(full_type_proto->data, full_type_proto->length);
      *op->node.mutable_def()->mutable_experimental_type() = full_type;
      RecordMutation(graph, *op, "setting fulltype");
    }
    
    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/experimental/gradients/nn_grad.cc

        // Grad for Softmax Input
        TF_RETURN_IF_ERROR(BroadcastMul(
            ctx, grad_outputs[0], forward_outputs_[1],
            grad_inputs.subspan(0, 1)));  // upstream_grad * local softmax grad
    
        // Grad for labels is null
        grad_inputs[1] = nullptr;
        return absl::OkStatus();
      }
      ~SparseSoftmaxCrossEntropyWithLogitsGradientFunction() override {}
    
     private:
      vector<AbstractTensorHandle*> forward_outputs_;
    };
    
    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)
  3. tensorflow/c/c_api_experimental.cc

      TF_Buffer* ret = TF_NewBuffer();
      TF_CHECK_OK(MessageToBuffer(config, ret));
      return ret;
    }
    
    TF_Buffer* TF_CreateRunOptions(unsigned char enable_full_trace) {
      tensorflow::RunOptions options;
      if (enable_full_trace) {
        options.set_trace_level(tensorflow::RunOptions::FULL_TRACE);
      } else {
        options.set_trace_level(tensorflow::RunOptions::NO_TRACE);
      }
      TF_Buffer* ret = TF_NewBuffer();
    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)
  4. tensorflow/c/eager/gradients.cc

        gtl::ArraySlice<AbstractTensorHandle*> output_gradients,
        absl::Span<AbstractTensorHandle*> result) const {
      if (gradient_function == nullptr) {
        return errors::InvalidArgument(
            "Provided null gradient_function for '", op_type, "'.\n",
            "If the intent is to treat this op as non-differentiable consider "
            "using RegisterNotDifferentiable or "
            "NotDifferentiableGradientFunction.");
      }
    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)
  5. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      absl::Status cc_status;
      if (var_info == nullptr) {
        cc_status = absl::InvalidArgumentError("TF_VariableInfo is NULL.");
        status->status = cc_status;
        return;
      }
      if (var_info->var_info.var() == nullptr) {
        cc_status = absl::InvalidArgumentError(
            "VariableInfo does not track a resource variable.");
    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)
  6. tensorflow/c/eager/gradients_test.cc

                          {x.get()}, absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(error::INVALID_ARGUMENT, s.code());
      ASSERT_EQ(
          "Provided null gradient_function for 'Neg'.\nIf the intent is to treat "
          "this op as non-differentiable consider using RegisterNotDifferentiable "
          "or NotDifferentiableGradientFunction.",
          s.message());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_function.cc

                              const TF_Function* grad, TF_Status* status) {
      if (func == nullptr) {
        status->status = InvalidArgument(
            "'func' argument to TF_GraphCopyFunction cannot be null");
        return;
      }
    
      tensorflow::mutex_lock l(g->mu);
      status->status = g->graph.AddFunctionDef(func->record->fdef(),
                                               func->record->stack_traces());
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

    ::testing::AssertionResult CompareSubString(int64_t offset, size_t length,
                                                absl::string_view result,
                                                size_t read) {
      // Result isn't a null-terminated string so we have to wrap it inside a
      // `string_view`
      if (length == read && content_view.substr(offset, length) ==
                                absl::string_view(result).substr(0, read))
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/unified_api_testutil.cc

        core::RefCountPtr<AbstractFunction> scoped_func;
        // Returning null tensors from a tf.function is not supported, so we keep
        // track of indices in the model's outputs are nullptr in this set.
        // The FunctionDef only outputs the non-null tensors. We later pad the
        // function op outputs to have nullptrs at the `null_indices`.
        absl::flat_hash_set<int> null_indices;
        {
          AbstractContextPtr func_ctx(BuildFunction(fn_name));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_experimental_test.cc

      const string malformed_text_proto(R"(cluster {
      job {
        name: "worker")");
      TF_Buffer* null_result =
          TFE_GetServerDef(malformed_text_proto.c_str(), status);
      EXPECT_NE(TF_GetCode(status), TF_OK);
      EXPECT_TRUE(absl::StrContains(TF_Message(status),
                                    "Invalid text proto for ServerDef"));
      EXPECT_EQ(null_result, nullptr);
    
      // Cleanup
      TF_DeleteBuffer(result);
      TF_DeleteStatus(status);
    }
    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)
Back to top