Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 330 for set_output (0.41 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/custom_aggregator_op.cc

        .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
          c->set_output(0, c->input(0));
          c->set_output(1, c->Scalar());
          c->set_output(2, c->Scalar());
    
          const tensorflow::AttrValue* num_bins_attr;
          TF_RETURN_IF_ERROR(c->GetAttr("num_bins", &num_bins_attr));
          c->set_output(3, c->MakeShape({num_bins_attr->i()}));
    
          return absl::OkStatus();
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/ops/xla_ops.cc

        // Note: when replication is supported, this op will have N outputs.
        .Output("outputs: T")
        .Attr("T: type")
        .SetShapeFn([](InferenceContext* c) {
          for (int i = 0; i < c->num_outputs(); ++i) {
            c->set_output(i, c->input(0));
          }
          return absl::OkStatus();
        })
        .Doc(
            "Operator that connects the output of an XLA computation to other "
            "consumer graph nodes.");
    
    REGISTER_OP("_XlaCompile")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 09:08:06 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/test_opkernels.cc

      explicit TestAsyncIdentityKernel(OpKernelConstruction* context)
          : AsyncOpKernel(context) {}
    
      void ComputeAsync(OpKernelContext* ctx, DoneCallback done) override {
        const Tensor& in = ctx->input(0);
        ctx->set_output(0, in);
        done();
      }
    
     private:
      TestAsyncIdentityKernel(const TestAsyncIdentityKernel&) = delete;
      void operator=(const TestAsyncIdentityKernel&) = delete;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/aot/aot_only_var_handle_op.cc

        .Attr("debug_name: string = ''")
        .Attr("dtype: type")
        .Attr("shape: shape")
        .Output("resource: resource")
        .SetIsStateful()
        .SetShapeFn([](shape_inference::InferenceContext* c) {
          c->set_output(0, c->Scalar());
          DataType t;
          TF_RETURN_IF_ERROR(c->GetAttr("dtype", &t));
          PartialTensorShape p;
          TF_RETURN_IF_ERROR(c->GetAttr("shape", &p));
          shape_inference::ShapeHandle s;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:57:04 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util.cc

          TF_RETURN_IF_ERROR(gpu_device_context->stream()->WaitFor(
              gpu_device_context->host_to_device_stream()));
        }
      } else {
        // No copy required.
        ctx->set_output(output_num, const_tensor);
        output_tensor = ctx->mutable_output(output_num);
      }
      return absl::OkStatus();
    }
    
    static absl::StatusOr<Var*> GetOrCreateResourceVar(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/kernels/xla_ops.cc

        Tensor compilation_successful(cpu_allocator, DT_BOOL, TensorShape({}));
        compilation_successful.scalar<bool>()() = false;
        ctx->set_output(0, compilation_key);
        ctx->set_output(1, compilation_successful);
        return;
      }
    
      // Each execution of an XlaCompile op creates a new ExecutableClosure, even
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. tensorflow/c/ops.cc

      if (i < 0 || i >= cc_ctx->num_outputs()) {
        TF_SetStatus(status, TF_INVALID_ARGUMENT, "output index out of range");
      }
      if (TF_GetCode(status) == TF_OK) {
        cc_ctx->set_output(i, *(reinterpret_cast<ShapeHandle*>(handle)));
      }
    }
    
    void TF_DeleteShapeHandle(TF_ShapeHandle* handle) {
      if (handle == nullptr) {
        return;
      }
    
      delete reinterpret_cast<ShapeHandle*>(handle);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/c/kernels_experimental.cc

        tf_status->status =
            InvalidArgument("TF_DestroyTemporaryVariable requires input is ref");
        return;
      }
      Tensor tmpvar = context->mutable_input(0, false);
      context->set_output(0, tmpvar);
    
      tensorflow::ResourceMgr* rm = context->resource_manager();
      OP_REQUIRES(context, rm,
                  absl::InternalError("No per-step resource manager."));
      std::string unique_name =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

        .Output("o: float")
        .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
          c->set_output(0, c->UnknownShape());
          return absl::OkStatus();
        });
    
    REGISTER_OP("InputTestShaped")
        .Output("o: float")
        .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
          c->set_output(0, c->Vector(2));
          return absl::OkStatus();
        });
    
    REGISTER_OP("UnaryTest")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  10. tensorflow/c/kernels.cc

        return;
      }
      ::tensorflow::Tensor cc_tensor;
      absl::Status s = ::tensorflow::TF_TensorToTensor(tensor, &cc_tensor);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
      if (s.ok()) {
        cc_ctx->set_output(i, cc_tensor);
      }
    }
    
    TF_Tensor* TF_GetMutableOutput(TF_OpKernelContext* ctx, int i,
                                   TF_Status* status) {
      auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
Back to top