Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for call_op (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.h

      // within its purview are mutating in nature.
      void PropagatePotentiallyWrittenWithinUnhandledOp(Operation* op);
    
      // Given a Region associated with the callee and operands from the
      // corresponding callOp, propagate the potentially written decision to the
      // callOp's operands, if the corresponding region's arguments are potentially
      // written resources.
      void PropagatePotentiallyWrittenUpFromCallee(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

                                             while_region.getBody()));
        } else if (auto case_op = dyn_cast<CaseOp>(op)) {
          llvm::SmallVector<func::FuncOp, 4> functions;
          case_op.get_branch_functions(functions);
          AnalyzeFunctionalCaseOrIfOp(case_op, functions, backtrack_analysis);
        } else if (auto if_op = dyn_cast<IfOp>(op)) {
          AnalyzeFunctionalCaseOrIfOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

      target.addLegalDialect<arith::ArithDialect>();
      target.addLegalDialect<func::FuncDialect>();
      target.addLegalDialect<tensor::TensorDialect>();
      target.addLegalDialect<shape::ShapeDialect>();
      target.addLegalOp<func::CallOp>();
    
      if (skip_quantization_ops_) {
        target.addLegalOp<TF::FakeQuantWithMinMaxVarsOp>();
        target.addLegalOp<TF::FakeQuantWithMinMaxVarsPerChannelOp>();
        target.addLegalOp<TF::FakeQuantWithMinMaxArgsOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

          TF::UniformQuantizedClipByValueOp>();
      target.addDynamicallyLegalOp<TF::CastOp>([](Operation *op) {
        auto cast_op = llvm::dyn_cast<TF::CastOp>(op);
        return !IsTFQintType(cast_op.getSrcT()) && !IsTFQintType(cast_op.getDstT());
      });
    
      RewritePatternSet patterns(ctx);
      PopulateLegalizeTfQuantizationPatterns(ctx, &patterns);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

          int padding_after = padding_before + offset;
          padding_values[2 * i] = padding_before;
          padding_values[2 * i + 1] = padding_after;
        }
      }
    
      if (input_zp_value == 0 ||
          absl::c_all_of(padding_values, [](int v) { return v == 0; })) {
        padding = CreateConstValue<int32_t>(
            builder, loc, {num_dims - 2, 2},
            SmallVector<int32_t>(padding_values.begin() + 2,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

        return uniform_type.getZeroPoint() == 0;
      } else if (auto per_axis_type =
                     llvm::dyn_cast_or_null<UniformQuantizedPerAxisType>(qtype)) {
        return absl::c_all_of(per_axis_type.getZeroPoints(),
                              [](int64_t x) { return x == 0; });
      }
      return false;
    }
    
    // Multiplies two 1D arrays with broadcasting support.
    template <typename T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_launch_util.cc

        OpKernelContext* ctx) {
      std::vector<int> constant_input_indices;
      TF_RETURN_IF_ERROR(GetCompileTimeConstInputs(
          &ctx->op_kernel(), &constant_input_indices, ctx->function_library()));
      if (!absl::c_all_of(constant_input_indices, [&](int idx) {
            return ctx->input_memory_type(idx) == HOST_MEMORY;
          })) {
        return errors::Internal("Unexpected device placement for a constant input");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
Back to top