Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 99 for signalPassFailure (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

        if (failed(applyPatternsAndFoldGreedily(getOperation(),
                                                std::move(patterns)))) {
          getOperation().emitError() << kBadDecompositionMessage;
          signalPassFailure();
        }
      }
    };
    
    #define GEN_PASS_DEF_DECOMPOSERESOURCEOPSINCLUSTERPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc"
    
    struct DecomposeResourceOpsInClusterPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

        }
        variable_v2s_to_replace.push_back(variable_v2_op);
        return mlir::WalkResult::advance();
      };
    
      WalkResult walk_res = func.walk(read_only_vars_fn);
      if (walk_res.wasInterrupted()) return signalPassFailure();
    
      for (VariableV2Op variable_v2_op : variable_v2s_to_replace) {
        builder.setInsertionPoint(variable_v2_op);
        ShapedType shaped_type =
            mlir::cast<ShapedType>(variable_v2_op.getResult().getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

        return signalPassFailure();
      }
    
      auto result = getOperation().walk([&tf_dialect](tf_device::LaunchOp launch) {
        if (failed(HoistOpsAndAnnotateWithDevice(tf_dialect, launch)))
          return WalkResult::interrupt();
    
        return WalkResult::advance();
      });
    
      if (result.wasInterrupted()) return signalPassFailure();
    
      if (!legacy_graph_export_) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/optimize_graph.cc

      RewritePatternSet patterns(&getContext());
      populateWithGenerated(patterns);
      auto func = getOperation();
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
        signalPassFailure();
      }
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 21 20:11:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/runtime_verify.cc

    void RuntimeVerifyPass::runOnOperation() {
      getOperation().walk([&](TflRuntimeVerifyOpInterface op) {
        if (failed(op.VerifyTflRuntimeConstraints(
                op.getOperation(), /*emit_error_on_verify_fail=*/true)))
          signalPassFailure();
      });
    }
    }  // namespace
    
    // Verifies TFL runtime constraints.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateRuntimeVerifyPass() {
      return std::make_unique<RuntimeVerifyPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/prepare_quantize.cc

        patterns.add<ConvertTFConstOpToArithConstOp>(ctx);
        patterns.add<ConvertStablehloConstToArithConstOp>(ctx);
        if (failed(applyPatternsAndFoldGreedily(func_op, std::move(patterns)))) {
          signalPassFailure();
        }
    
        // Finally, the quantization parameters can be propagated to the rest of the
        // values (tensors).
        ApplyQuantizationParamsPropagation(
            func_op, /*is_signed=*/true, 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)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc

        signalPassFailure();
      }
    
      RewritePatternSet patterns_2(&getContext());
      patterns_2
          .add<QuantizeConstPattern, ConvertQuantizeCastToUniformQuantizePattern,
               ConvertDequantizeCastToUniformDequantizePattern>(ctx);
      if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns_2)))) {
        signalPassFailure();
      }
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/shlo_simplify.cc

        RewritePatternSet patterns(&getContext());
        populateWithGenerated(patterns);
        PopulateFolderPatterns(patterns);
        if (failed(applyPatternsAndFoldGreedily(module, std::move(patterns)))) {
          signalPassFailure();
        }
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateSHLOSimplifyPass() {
      return std::make_unique<SHLOSimplifyPass>();
    }
    
    }  // namespace odml
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 03:05:20 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_cluster_cleanup_attributes.cc

              op->removeAttr(kDeviceAttr);
            }
          }
          return WalkResult::advance();
        };
    
        if (failed(TFTPU::WalkReachableFromTpuCluster(getOperation(), traverse_op)))
          return signalPassFailure();
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTPUClusterCleanupAttributesPass() {
      return std::make_unique<TPUCleanupClusterAttributesPass>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/check_accepted_ops_pass.cc

          op->emitWarning() << op->getName().getStringRef() << " op is temporarily "
                            << "accepted, but it should be removed in the end.";
        } else {
          // The other ops are not accepted.
          return signalPassFailure();
        }
      });
    }
    
    }  // namespace odml
    }  // namespace mlir
    
    std::unique_ptr<mlir::Pass> mlir::odml::createCheckAcceptedOpsPass(
        const std::vector<std::string> &optional_accepted_dialects) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 21:06:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top