Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TF_RET_CHECK (0.36 sec)

  1. tensorflow/compiler/jit/xla_tpu_device.cc

        se::Stream* const src_compute_stream = src_xla_context->stream();
        TF_RET_CHECK(src_compute_stream != nullptr);
        TF_RET_CHECK(input->dtype() == output->dtype())
            << "input type: " << DataTypeString(input->dtype()) << " output type "
            << DataTypeString(output->dtype());
        TF_RET_CHECK(input->shape() == output->shape());
        TF_RET_CHECK(DMAHelper::CanUseDMA(input));
        auto* const src_compute_stream_impl =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util.cc

        TF_RETURN_IF_ERROR(
            ctx->allocate_temp(output_dtype, output_shape, &output_tensor));
        if (output_tensor.TotalBytes() > 0) {
          XlaTensor* xla_tensor = XlaTensor::FromTensor(&output_tensor);
          TF_RET_CHECK(xla_tensor);
          xla_tensor->set_shaped_buffer(output.TakeSubTree({output_num}));
          if (use_multiple_streams) {
            xla_tensor->ResetDefinitionEvent(definition_event, stream);
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      auto dict_attr =
          function->getAttrOfType<mlir::DictionaryAttr>(kEntryFuncAttr);
      if (dict_attr) {
        TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("inputs")))
            << "inputs missing in entry function attribute";
        TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("outputs")))
            << "outputs missing in entry function attribute";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      auto dict_attr =
          function->getAttrOfType<mlir::DictionaryAttr>(kEntryFuncAttr);
      if (dict_attr) {
        TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("inputs")))
            << "inputs missing in entry function attribute";
        TF_RET_CHECK(mlir::isa<mlir::StringAttr>(dict_attr.get("outputs")))
            << "outputs missing in entry function attribute";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

        // Treats empty input shape as scalar
        if (dim_str.empty()) continue;
        if (dim_str == "?") {
          dims.push_back(-1);
          continue;
        }
        int size;
        TF_RET_CHECK(absl::SimpleAtoi(dim_str, &size));
        dims.push_back(size);
      }
      return dims;
    }
    
    static Status HandleSubtype(absl::string_view subtype,
                                ArrayInfo::SubTypeInfo* result) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/compile.cc

        // tf_library genrule are deterministic.
        const size_t size = module->ByteSizeLong();
        auto serialized = std::make_unique<char[]>(size);
        TF_RET_CHECK(
            SerializeToBufferDeterministic(*module, serialized.get(), size));
        TF_RETURN_IF_ERROR(
            WriteStringToFile(Env::Default(), flags.out_session_module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 08:28:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device_context.cc

                                device_tensor->shape(), device_tensor->dtype(),
                                /*fast_mem=*/false, layout_preference));
    
        // The device tensor should always be fresh.
        TF_RET_CHECK(!xla_tensor->has_shaped_buffer());
    
        TF_RETURN_IF_ERROR(
            xla_tensor->AllocateShapedBuffer(device_tensor->dtype(), shape, client_,
                                             stream_->parent()->device_ordinal()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

      xla::HloModuleProto* module_proto =
          compilation_result->computation->mutable_proto();
      absl::StatusOr<xla::ProgramShape> program_shape_or_status =
          compilation_result->computation->GetProgramShape();
      TF_RET_CHECK(program_shape_or_status.ok());
    
      xla::ProgramShape& program_shape = program_shape_or_status.value();
      if (!program_shape.result().IsTuple())
        return errors::Internal("Expect result to have tuple shape");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

        // the attribute from MLIR, it is treated as an attribute from function
        // calls.
        std::vector<string> name_tokens =
            absl::StrSplit(name, '.', absl::SkipEmpty());
        TF_RET_CHECK(name_tokens.size() <= 2);
        auto it = func_call_attrs.find(name_tokens[0]);
        if (it == func_call_attrs.end()) {
          (*values)[string(name)] = std::move(value);
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

        std::vector<xla::Shape>* xla_input_shapes) {
      xla_input_shapes->clear();
    
      mlir::func::FuncOp main_func =
          module.lookupSymbol<mlir::func::FuncOp>("main");
      TF_RET_CHECK(main_func != nullptr) << "No main function found";
      mlir::FunctionType func_type = main_func.getFunctionType();
    
      int num_args = func_type.getNumInputs();
      xla_input_shapes->reserve(num_args);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
Back to top