Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for ruleset (0.16 sec)

  1. tensorflow/c/eager/gradient_checker.cc

        Range(&vals, 0, num_dims_out);
        AbstractTensorHandle* sum_dims_raw = nullptr;
        TF_RETURN_IF_ERROR(TestTensorHandleWithDims<int32_t, TF_INT32>(
            ctx, vals.data(), vals_shape, 1, &sum_dims_raw));
        sum_dims.reset(sum_dims_raw);
      }
    
      // Reduce sum the output on all dimensions.
      TF_RETURN_IF_ERROR(ops::Sum(ctx, model_out.get(), sum_dims.get(), &outputs[0],
                                  /*keep_dims=*/false, "sum_output"));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          finished_execute_.wait(l);
        }
        if (TF_GetCode(status_.get()) != TF_OK) {
          TF_SetStatus(status, TF_GetCode(status_.get()),
                       TF_Message(status_.get()));
          // Reset the member `status_` so future op executions (after recovery from
          // the bad `status`) start with an OK status.
          TF_SetStatus(status_.get(), TF_OK, "");
        }
        cancellation_manager_ = nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  3. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      int num_retvals = num_replicas;
      TFE_Execute(op.get(), result_handles, &num_retvals, status);
      if (TF_GetCode(status) != TF_OK) return;
      for (int i = 0; i < num_replicas; ++i) {
        (*components)[i].reset(result_handles[i]);
      }
    }
    
    TensorHandlePtr Multiply(TFE_Context* context, TFE_TensorHandle* first,
                             TFE_TensorHandle* second, TF_Status* status) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/c_api.cc

                opaque_plugin_resource, plugin_resource_name, delete_func);
            return tensorflow::OkStatus();
          });
    
      if (cc_status.ok()) {
        tf_plugin_resource_ptr.reset(tf_plugin_resource);
        *result_plugin_resource = tf_plugin_resource_ptr->GetOpaquePluginResource();
      } else {
        *result_plugin_resource = nullptr;
      }
      status->status = cc_status;
    }
    
    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)
  5. tensorflow/c/eager/unified_api_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 2.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      Status s = RunModel(TestScalarShape, ctx.get(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/gradient_checker_test.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      AbstractTensorHandlePtr y;
      {
        AbstractTensorHandle* y_raw = nullptr;
        Status s =
            TestScalarTensorHandle<float, TF_FLOAT>(ctx_.get(), 7.0f, &y_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        y.reset(y_raw);
      }
    
      float expected_dx[1] = {7.0f};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

     public:
      explicit GraphOperation(TF_Graph* g) : TracingOperation(kGraph), g_(g) {}
      void Release() override { delete this; }
      Status Reset(const char* op, const char* raw_device_name) override {
        if (op_) {
          return errors::FailedPrecondition("Reset called on already built op.");
        }
        if (raw_device_name) {
          device_name_ = raw_device_name;
        }
        op_type_ = op;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/eager/unified_api_testutil.cc

                                 ->Finalize(&output_list, &func));
          scoped_func.reset(func);
          for (auto output : output_list.outputs) {
            output->Unref();
          }
          TF_RETURN_IF_ERROR(ctx->RegisterFunction(func));
        }
    
        AbstractOperationPtr fn_op(ctx->CreateOperation());
        TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr));
        for (auto input : inputs) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_experimental.cc

    using tensorflow::string;
    
    void TFE_OpReset(TFE_Op* op_to_reset, const char* op_or_function_name,
                     const char* raw_device_name, TF_Status* status) {
      if (op_to_reset) {
        tensorflow::ImmediateExecutionOperation* op =
            tensorflow::unwrap(op_to_reset);
        op->Clear();
        status->status = op->Reset(op_or_function_name, raw_device_name);
      } else {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  10. tensorflow/c/eager/c_api.cc

            "Invalid tensorflow.ServerDef protocol buffer");
        return;
      }
      status->status =
          tensorflow::unwrap(ctx)->GetDistributedManager()->SetOrUpdateServerDef(
              server_def, /*reset_context=*/true, keep_alive_secs,
              init_timeout_in_ms, retries, clear_existing_contexts);
    #endif  // !IS_MOBILE_PLATFORM
    }
    
    TF_CAPI_EXPORT extern void TFE_ContextUpdateServerDef(TFE_Context* ctx,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top