Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 313 for created (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

        module_op.emitError() << "quant-convert-tpu-model-to-cpu pattern "
                                 "conversion did not converge.";
        signalPassFailure();
        return;
      }
    }
    
    }  // namespace
    
    // Creates an instance of `ConvertTpuModelToCpuPass`.
    std::unique_ptr<OperationPass<ModuleOp>> CreateConvertTpuModelToCpuPass() {
      return std::make_unique<ConvertTpuModelToCpuPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

    #include "tensorflow/compiler/jit/xla_compilation_cache.pb.h"
    #include "xla/service/hlo.pb.h"
    #include "tensorflow/core/platform/path.h"
    #include "tensorflow/core/public/session.h"
    
    namespace tensorflow {
    namespace {
    
    // Creates a float tensor of linearly increasing values, starting from offset.
    Tensor CreateInputTensor(const TensorShape& shape, float offset) {
      Tensor tensor(DT_FLOAT, shape);
      for (int64 i = 0; i < tensor.flat<float>().size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      auto reshape_sizes = DenseIntElementsAttr::get(reshape_type, new_shape);
      auto reshape_value =
          builder->create<TF::ConstOp>(input.getLoc(), reshape_sizes);
      return builder->create<TF::ReshapeOp>(input.getLoc(), reshape_result_type,
                                            input, reshape_value);
    }
    
    // Creates transpose op for shape to depth transform.
    TF::TransposeOp GetTransposeOpForConv2DFilter(OpBuilder* builder, Value input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

                ctx);
        if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns_2)))) {
          signalPassFailure();
        }
      }
    }
    
    }  // namespace
    
    // Creates an instance of the TensorFlow dialect PrepareQuantize pass.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePrepareQuantizePass(
        const bool enable_per_channel_quantized_weight, const int bit_width) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 05:11:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

        if (failed(ApplyQuantizationSpec(spec, module_op))) {
          signalPassFailure();
          return;
        }
      }
    }
    
    }  // namespace
    
    // Creates `LiftQuantizableSpotsAsFunctionsPass` with user-defined
    // `QuantizationSpecs`.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateLiftQuantizableSpotsAsFunctionsPass(
        const QuantizationSpecs& quantization_specs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/cc_ops_test.cc

      test::GetTensors(root, {add}, &out);
      test::ExpectTensorNear<float>(out[0], test::AsTensor<float>({42.0f}, {}),
                                    1e-5);
    
      out.clear();
      // Note : GetTensors creates a new session, so 'v' is uninitialized.
      // sub should have no control deps, so it should not cause the assign to run.
      // Hence is_inited should be false.
      test::GetTensors(root, {sub, is_inited}, &out);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

          } else {
            if (IsCompatibleTypeWithTFLCastOp(value.getType()) &&
                IsCompatibleTypeWithTFLCastOp(type)) {
              auto cast = b.create<CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            } else {
              auto cast = b.create<TF::CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            }
          }
        }
        args.append(new_args.begin(), new_args.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

    }
    
    // Creates a wrapper island enclosing the `sub_op` dependent on
    // `control_inputs`.
    IslandOp CreateIsland(Operation* sub_op, ValueRange control_inputs,
                          OpBuilder builder) {
      assert(sub_op);
      auto control_type = ControlType::get(builder.getContext());
      auto island = builder.create<IslandOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/math_grad.cc

        // Calculate conjugate of X
        std::string name = "Conj_Log1p_Grad_X";
        TF_RETURN_IF_ERROR(SafeConj(ctx, X, &temp_output, name.c_str()));
    
        AbstractTensorHandlePtr Conj_X(temp_output);
    
        // Creates Ones
        name = "OnesLike_Log1p_Grad_X";
        TF_RETURN_IF_ERROR(OnesLike(ctx, Conj_X.get(), &temp_output, name.c_str()));
    
        AbstractTensorHandlePtr Ones_X(temp_output);
    
        name = "Add_Log1p_Grad_X";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

            auto s_qconst =
                builder.create<SparseQConstOp>(op->getLoc(), cst.getQtypeAttr(),
                                               cst.getValue(), s_param, new_value);
            value.replaceAllUsesWith(s_qconst.getResult());
            cst.erase();
          }
    
          if (result.needs_densify) {
            auto value = op->getOperand(operand);
            auto densify =
                builder.create<DensifyOp>(op->getLoc(), value.getType(), value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top